Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.
TypeScript ai-artartificial-intelligencegenerative-artimage-generationimg2imginpaintinglatent-diffusionlinuxmacosoutpaintingstable-diffusiontxt2imgwindows
style(tests): apply ruff format to the project board suites
Josh Corbettf9eea29c9d7a
diff --git a/tests/app/routers/test_boards_multiuser.py b/tests/app/routers/test_boards_multiuser.pyindex af14e3a724..e3c67e9e12 100644--- a/tests/app/routers/test_boards_multiuser.py+++ b/tests/app/routers/test_boards_multiuser.py@@ -952,9 +952,7 @@ def _claim_board_for_a_project(client: TestClient, mock_invoker: Invoker, token:return board["board_id"]-def test_a_project_board_reports_the_project_that_owns_it(- client: TestClient, mock_invoker: Invoker, user1_token: str-):+def test_a_project_board_reports_the_project_that_owns_it(client: TestClient, mock_invoker: Invoker, user1_token: str):board_id = _claim_board_for_a_project(client, mock_invoker, user1_token, "Claimed+Board")response = client.get(f"/api/v1/boards/{board_id}", headers={"Authorization": f"Bearer {user1_token}"})diff --git a/tests/app/routers/test_projects.py b/tests/app/routers/test_projects.pyindex 5126886884..a7fbcd294a 100644--- a/tests/app/routers/test_projects.py+++ b/tests/app/routers/test_projects.py@@ -140,9 +140,7 @@ def test_deleting_a_project_deletes_its_board(client: TestClient, user1_token: sassert board.status_code == status.HTTP_404_NOT_FOUND-def test_deleting_a_project_leaves_its_media_uncategorized(- client: TestClient, mock_invoker: Invoker, user1_token: str-):+def test_deleting_a_project_leaves_its_media_uncategorized(client: TestClient, mock_invoker: Invoker, user1_token: str):created = _create_project(client, user1_token).json()with mock_invoker.services.board_records._db.transaction() as cursor:cursor.execute(@@ -210,9 +208,10 @@ def test_the_board_snapshot_of_a_missing_or_foreign_project_is_a_404(assert client.get("/api/v1/projects/nope/board-snapshot", headers=_auth(user1_token)).status_code == (status.HTTP_404_NOT_FOUND)- assert client.get(- f"/api/v1/projects/{created['project_id']}/board-snapshot", headers=_auth(user2_token)- ).status_code == status.HTTP_404_NOT_FOUND+ assert (+ client.get(f"/api/v1/projects/{created['project_id']}/board-snapshot", headers=_auth(user2_token)).status_code+ == status.HTTP_404_NOT_FOUND+ )def test_projects_stay_private_to_their_owner(client: TestClient, user1_token: str, user2_token: str):@@ -222,11 +221,14 @@ def test_projects_stay_private_to_their_owner(client: TestClient, user1_token: sassert client.get(f"/api/v1/projects/{project_id}", headers=_auth(user2_token)).status_code == (status.HTTP_404_NOT_FOUND)- assert client.put(- f"/api/v1/projects/{project_id}",- json={"name": "Stolen", "data": {}, "expected_revision": 1},- headers=_auth(user2_token),- ).status_code == status.HTTP_404_NOT_FOUND+ assert (+ client.put(+ f"/api/v1/projects/{project_id}",+ json={"name": "Stolen", "data": {}, "expected_revision": 1},+ headers=_auth(user2_token),+ ).status_code+ == status.HTTP_404_NOT_FOUND+ )# Deleting someone else's project is a silent no-op, and must not take their board with it.client.delete(f"/api/v1/projects/{project_id}", headers=_auth(user2_token))