mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-20 04:13:07 +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'))
|
||||
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__":
|
||||
from simpletap import TAPTestRunner
|
||||
unittest.main(testRunner=TAPTestRunner())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue