mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-23 05:27:47 +02:00
Test: Change most tests to use "add test" instead of split arguments
This commit is contained in:
parent
d711bda35c
commit
27b8cabac1
76 changed files with 1179 additions and 1245 deletions
12
test/count.t
12
test/count.t
|
@ -41,17 +41,17 @@ class TestCount(TestCase):
|
|||
def setUpClass(cls):
|
||||
"""Executed once before any test in the class"""
|
||||
cls.t = Task()
|
||||
cls.t(("add", "one"))
|
||||
cls.t(("log", "two"))
|
||||
cls.t(("add", "three"))
|
||||
cls.t(("1", "delete"))
|
||||
cls.t("add one")
|
||||
cls.t("log two")
|
||||
cls.t("add three")
|
||||
cls.t("1 delete")
|
||||
|
||||
def test_count_unfiltered(self):
|
||||
code, out, err = self.t(("count",))
|
||||
code, out, err = self.t("count")
|
||||
self.assertEqual(out.strip(), "3")
|
||||
|
||||
def test_count_filtered(self):
|
||||
code, out, err = self.t(("status:deleted", "count"))
|
||||
code, out, err = self.t("status:deleted count")
|
||||
self.assertEqual(out.strip(), "1")
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue