mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Test: Merged default.command.t into default.t
This commit is contained in:
parent
1f30757c01
commit
3380e105f6
2 changed files with 20 additions and 62 deletions
|
@ -35,6 +35,26 @@ sys.path.append(os.path.dirname(os.path.abspath(__file__)))
|
|||
from basetest import Task, TestCase
|
||||
|
||||
|
||||
class TestCMD(TestCase):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
cls.t = Task()
|
||||
cls.t.config("default.command", "list")
|
||||
|
||||
cls.t('add one')
|
||||
cls.t('add two')
|
||||
|
||||
def test_default_command(self):
|
||||
"""default command"""
|
||||
code, out, err = self.t()
|
||||
self.assertIn("task list]", err)
|
||||
|
||||
def test_info_command(self):
|
||||
"""info command"""
|
||||
code, out, err = self.t('1')
|
||||
self.assertRegexpMatches(out, 'Description\s+one')
|
||||
|
||||
|
||||
class TestDefaults(TestCase):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue