mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Tests: Added test for TW-1763
This commit is contained in:
parent
1187ad16cc
commit
ea82d88816
1 changed files with 10 additions and 1 deletions
|
@ -33,7 +33,6 @@ sys.path.append(os.path.dirname(os.path.abspath(__file__)))
|
|||
|
||||
from basetest import Task, TestCase
|
||||
|
||||
|
||||
class TestBug1306(TestCase):
|
||||
def setUp(self):
|
||||
self.t = Task()
|
||||
|
@ -44,6 +43,16 @@ class TestBug1306(TestCase):
|
|||
code, out, err = self.t("1 info")
|
||||
self.assertIn("PROJ", out)
|
||||
|
||||
class TestBug1763(TestCase):
|
||||
def setUp(self):
|
||||
self.t = Task()
|
||||
|
||||
def test_mod_nop(self):
|
||||
"""Removing the due date of a task with no due date modifies the task"""
|
||||
self.t("add foo")
|
||||
code, out, err = self.t("1 modify due:")
|
||||
self.assertIn("Modified 0 tasks.", out)
|
||||
|
||||
if __name__ == "__main__":
|
||||
from simpletap import TAPTestRunner
|
||||
unittest.main(testRunner=TAPTestRunner())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue