mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
TW-158: Make tests more specific
This commit is contained in:
parent
0f4cbc5dc9
commit
d28cff7cae
1 changed files with 2 additions and 0 deletions
|
@ -148,6 +148,7 @@ class TestExportCommand(TestCase):
|
||||||
|
|
||||||
deps = self.export(1)['depends']
|
deps = self.export(1)['depends']
|
||||||
self.assertType(deps, list)
|
self.assertType(deps, list)
|
||||||
|
self.assertEqual(len(deps), 2)
|
||||||
|
|
||||||
for uuid in deps:
|
for uuid in deps:
|
||||||
self.assertString(uuid, UUID_REGEXP, regexp=True)
|
self.assertString(uuid, UUID_REGEXP, regexp=True)
|
||||||
|
@ -160,6 +161,7 @@ class TestExportCommand(TestCase):
|
||||||
code, out, err = self.t("rc.json.array=off rc.json.depends.array=off 1 export")
|
code, out, err = self.t("rc.json.array=off rc.json.depends.array=off 1 export")
|
||||||
deps = json.loads(out)["depends"]
|
deps = json.loads(out)["depends"]
|
||||||
self.assertString(deps)
|
self.assertString(deps)
|
||||||
|
self.assertEqual(len(deps.split(",")), 2)
|
||||||
|
|
||||||
for uuid in deps.split(','):
|
for uuid in deps.split(','):
|
||||||
self.assertString(uuid, UUID_REGEXP, regexp=True)
|
self.assertString(uuid, UUID_REGEXP, regexp=True)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue