mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-21 07:43:08 +02:00
Test: Added undo en-passant error check
This commit is contained in:
parent
cfe57c3870
commit
ff0441147d
1 changed files with 6 additions and 0 deletions
|
@ -61,6 +61,12 @@ class TestUndo(TestCase):
|
||||||
code, out, err = self.t(('_get', '1.status'))
|
code, out, err = self.t(('_get', '1.status'))
|
||||||
self.assertEqual(out.strip(), 'pending')
|
self.assertEqual(out.strip(), 'pending')
|
||||||
|
|
||||||
|
def test_undo_en_passant(self):
|
||||||
|
"""Verify that en-passant changes during undo are an error"""
|
||||||
|
self.t("add one")
|
||||||
|
code, out, err = self.t.runError("undo +tag")
|
||||||
|
self.assertIn("The undo command does not allow further task modification.", err)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
from simpletap import TAPTestRunner
|
from simpletap import TAPTestRunner
|
||||||
unittest.main(testRunner=TAPTestRunner())
|
unittest.main(testRunner=TAPTestRunner())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue