Skip to content

Commit

Permalink
Use same tag names for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rkhwaja committed Jun 3, 2024
1 parent b8fe291 commit f397ea3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_mirror.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ def test_ChangeTagsOnTaskBeforeStart(client, taskCreator):
name = 'rtmilk test ChangeTagsOnTaskBeforeStart'
task = taskCreator.Add(name)
task.startDate.Set(datetime.today() + timedelta(days=2))
task.tags.Set({'rtm-test-tag1', 'rtm-test-tag2'})
task.tags.Set({'rtmilk-test-tag1', 'rtmilk-test-tag2'})
task.complete.Set(True)

tasks = client.Get(f'name: {name}')
assert len(tasks) == 1
task = tasks[0]

taskData = TaskData.FromTask(task)
taskData.tags -= {'rtm-test-tag1'}
taskData.tags -= {'rtmilk-test-tag1'}
Mirror(client, [task], [taskData])

tasks = client.Get(f'name: {name}')
assert len(tasks) == 1
assert tasks[0].tags.value == {'rtm-test-tag2'}
assert tasks[0].tags.value == {'rtmilk-test-tag2'}

0 comments on commit f397ea3

Please sign in to comment.