Add projects.get_user_names endpoint

This commit is contained in:
allegroai
2023-07-26 18:21:16 +03:00
parent 14d18a7aba
commit 1b650b1689
5 changed files with 125 additions and 27 deletions

View File

@@ -183,6 +183,8 @@ class TestSubProjects(TestService):
self.assertEqual(res.types, [])
res = self.api.projects.get_task_parents(projects=[project])
self.assertEqual(res.parents, [])
res = self.api.projects.get_user_names(projects=[project])
self.assertEqual(res.users, [])
res = self.api.organization.get_entities_count(
projects={"id": [project]}, active_users=[user]
)
@@ -206,6 +208,8 @@ class TestSubProjects(TestService):
self.assertEqual(res.projects[0].stats.active.total_tasks, 2)
res = self.api.projects.get_task_parents(projects=[project])
self._assert_ids(res.parents, [task1])
res = self.api.projects.get_user_names(projects=[project])
self.assertEqual(res.users, [{"id": "Test1", "name": "Test User"}])
res = self.api.models.get_frameworks(projects=[project])
self.assertEqual(res.frameworks, [framework])
res = self.api.tasks.get_types(projects=[project])