mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Test: Added _projects test
This commit is contained in:
parent
93cba3d880
commit
301f897282
1 changed files with 17 additions and 0 deletions
|
@ -152,6 +152,23 @@ class TestProjects(TestCase):
|
|||
|
||||
self.validate_indentation(out)
|
||||
|
||||
def test_project_helper(self):
|
||||
"""Verify _projects helper list projects"""
|
||||
self.t("add project:A one")
|
||||
self.t("add project:B two")
|
||||
self.t("2 delete")
|
||||
self.t("log project:C three")
|
||||
self.t("list")
|
||||
|
||||
code, out, err = self.t("_projects")
|
||||
self.assertIn("A", out)
|
||||
self.assertNotIn("B", out)
|
||||
self.assertNotIn("C", out)
|
||||
|
||||
code, out, err = self.t("_projects rc.list.all.projects:1")
|
||||
self.assertIn("A", out)
|
||||
self.assertIn("B", out)
|
||||
self.assertIn("C", out)
|
||||
|
||||
class TestBug299(TestCase):
|
||||
def setUp(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue