Skip to content

Commit

Permalink
Add formats.
Browse files Browse the repository at this point in the history
  • Loading branch information
Исаев Василий Сергеевич committed Oct 9, 2024
1 parent e9f4119 commit 99cbe63
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_views/test_view_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -800,4 +800,4 @@ async def test_export_permission_csv(client: AsyncClient) -> None:

async def test_export_permission_json(client: AsyncClient) -> None:
response = await client.get("/admin/movie/export/json")
assert response.status_code == 403
assert response.status_code == 403
1 change: 1 addition & 0 deletions tests/test_views/test_view_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,7 @@ def test_export_csv(client: TestClient) -> None:
response = client.get("/admin/user/export/csv")
assert response.text == "name,status\r\nDaniel,ACTIVE\r\n"


def test_export_json(client: TestClient) -> None:
with session_maker() as session:
user = User(name="Daniel", status="ACTIVE")
Expand Down

0 comments on commit 99cbe63

Please sign in to comment.