Complete resource pool support for projects

This commit is contained in:
grossmj committed 2023-09-11 18:15:03 +07:00
1 parent d53ef175f8
commit a95dda0d1d
6 files changed
+256 -30

No files matched your search

@@ -42,6 +42,12 @@ class TestRolesRoutes:
assert response.status_code == status.HTTP_200_OK
assert response.json()["role_id"] == str(role_in_db.role_id)
async def test_get_privileges(self, app: FastAPI, client: AsyncClient):
response = await client.get(app.url_path_for("get_privileges"))
assert response.status_code == status.HTTP_200_OK
assert len(response.json()) == 45 # 45 built-in privileges
async def test_list_roles(self, app: FastAPI, client: AsyncClient) -> None:
response = await client.get(app.url_path_for("get_roles"))