Allow renaming published reports

This commit is contained in:
allegroai
2023-01-03 12:15:44 +02:00
parent ab798e4170
commit 22a2a02760
2 changed files with 9 additions and 10 deletions

View File

@@ -58,10 +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"])
# update on tags or rename can be done for published report too
self.api.reports.update(task=task_id, name="new name", tags=["test"])
task = self.api.tasks.get_all_ex(id=[task_id]).tasks[0]
self.assertEqual(task.tags, ["test"])
self.assertEqual(task.name, "new name")
# move under another project autodeletes the empty project
new_project_name = "Reports Test"