mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-18 21:33:07 +02:00
tests: Tags are now deserialized into sets
This commit is contained in:
parent
353c700815
commit
0b91eab70b
3 changed files with 8 additions and 8 deletions
|
@ -142,8 +142,8 @@ class TestChooseTag(IntegrationTest):
|
|||
for task in self.tasks:
|
||||
task.refresh()
|
||||
|
||||
assert self.tasks[0]['tags'] == ["home"]
|
||||
assert self.tasks[1]['tags'] == ["home"]
|
||||
assert self.tasks[0]['tags'] == set(["home"])
|
||||
assert self.tasks[1]['tags'] == set(["home"])
|
||||
|
||||
|
||||
class TestChooseTagCancelled(IntegrationTest):
|
||||
|
@ -178,6 +178,6 @@ class TestChooseTagCancelled(IntegrationTest):
|
|||
for task in self.tasks:
|
||||
task.refresh()
|
||||
|
||||
assert self.tasks[0]['tags'] == ["home"]
|
||||
assert self.tasks[0]['tags'] == set(["home"])
|
||||
assert self.tasks[1]['project'] == None
|
||||
|
||||
|
|
|
@ -692,8 +692,8 @@ class TestModInteractiveAction(IntegrationTest):
|
|||
for task in self.tasks:
|
||||
task.refresh()
|
||||
|
||||
assert self.tasks[0]['tags'] == ["work"]
|
||||
assert self.tasks[1]['tags'] == []
|
||||
assert self.tasks[0]['tags'] == set(["work"])
|
||||
assert self.tasks[1]['tags'] == set()
|
||||
|
||||
|
||||
class TestModVisibleAction(IntegrationTest):
|
||||
|
|
|
@ -147,7 +147,7 @@ class TestViewportDefaultsAssigment(IntegrationTest):
|
|||
task = self.tw.tasks.pending()[0]
|
||||
assert task['description'] == 'tag work task'
|
||||
assert task['status'] == 'pending'
|
||||
assert task['tags'] == ['work']
|
||||
assert task['tags'] == set(['work'])
|
||||
|
||||
|
||||
class TestViewportDefaultsExplicit(IntegrationTest):
|
||||
|
@ -169,7 +169,7 @@ class TestViewportDefaultsExplicit(IntegrationTest):
|
|||
assert task['description'] == 'home task'
|
||||
assert task['status'] == 'pending'
|
||||
assert task['project'] == 'Chores'
|
||||
assert task['tags'] == []
|
||||
assert task['tags'] == set()
|
||||
|
||||
|
||||
class TestViewportDefaultsExplicitEmpty(IntegrationTest):
|
||||
|
@ -191,7 +191,7 @@ class TestViewportDefaultsExplicitEmpty(IntegrationTest):
|
|||
assert task['description'] == 'home task'
|
||||
assert task['status'] == 'pending'
|
||||
assert task['project'] == None
|
||||
assert task['tags'] == []
|
||||
assert task['tags'] == set()
|
||||
|
||||
|
||||
class TestViewportInspection(IntegrationTest):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue