mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Test: Added export limit test
This commit is contained in:
parent
5da06e3e31
commit
9a390644ef
1 changed files with 14 additions and 0 deletions
|
@ -178,6 +178,20 @@ class TestExportCommand(TestCase):
|
|||
self.t('add estimate:month test duration uda')
|
||||
self.assertString(self.export('2')['estimate'], 'month')
|
||||
|
||||
class TestExportCommandLimit(TestCase):
|
||||
def setUp(self):
|
||||
self.t = Task()
|
||||
|
||||
def test_export_obeys_limit(self):
|
||||
"""Verify that 'task export limit:1' is obeyed"""
|
||||
self.t('add one')
|
||||
self.t('add two')
|
||||
|
||||
code, out, err = self.t("export limit:1")
|
||||
self.assertIn("one", out)
|
||||
self.assertNotIn("two", out)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
from simpletap import TAPTestRunner
|
||||
unittest.main(testRunner=TAPTestRunner())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue