Allow updating tags on published reports

This commit is contained in:
allegroai
2023-01-03 12:15:02 +02:00
parent f09ac672d2
commit ab798e4170
2 changed files with 19 additions and 12 deletions

View File

@@ -58,6 +58,11 @@ class TestReports(TestService):
with self.api.raises(errors.bad_request.InvalidTaskStatus):
self.api.reports.update(task=task_id, comment=comment)
# update on tags can be done for published report too
self.api.reports.update(task=task_id, tags=["test"])
task = self.api.tasks.get_all_ex(id=[task_id]).tasks[0]
self.assertEqual(task.tags, ["test"])
# move under another project autodeletes the empty project
new_project_name = "Reports Test"
self._delete_project(new_project_name)