Skip to content

Commit

Permalink
[qa][task] fix test for gazu.task.new_task_type
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanBldy committed Aug 7, 2024
1 parent 82da4db commit fc96ad7
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tests/test_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,13 +508,10 @@ def test_assign_task(self):
self.assertIn("person-01", task["assignees"])

def test_new_task_type(self):
task_type_name = "task-type-name"
with requests_mock.mock() as mock:
task_type = {"id": "task-type-01", "name": task_type_name}
mock.post(
gazu.client.get_full_url("data/task-types"),
text=json.dumps(task_type),
)
task_type = {"id": "task-type-01", "name": "task-type-name"}
mock_route(mock, "GET", "data/task-types", text=[])
mock_route(mock, "POST", "data/task-types", text=task_type)
self.assertEqual(gazu.task.new_task_type(task_type), task_type)

def test_new_task_status(self):
Expand Down

0 comments on commit fc96ad7

Please sign in to comment.