Skip to content

Commit

Permalink
remove invalid uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
igorbenav committed Dec 23, 2024
1 parent 3b4b05a commit 044c2ed
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
11 changes: 0 additions & 11 deletions tests/sqlalchemy/core/test_uuid.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,17 +184,6 @@ async def test_custom_uuid_crud(uuid_client):
assert response.status_code == 404


@pytest.mark.asyncio
async def test_invalid_uuid_handling(uuid_client):
invalid_uuid = "not-a-uuid"

response = uuid_client.get(f"/uuid-test/get/{invalid_uuid}")
assert response.status_code == 404

response = uuid_client.get(f"/custom-uuid-test/get/{invalid_uuid}")
assert response.status_code == 404


@pytest.mark.asyncio
async def test_uuid_list_endpoint(uuid_client):
created_ids = []
Expand Down
11 changes: 0 additions & 11 deletions tests/sqlmodel/core/test_uuid.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,17 +186,6 @@ async def test_custom_uuid_crud(uuid_client):
assert response.status_code == 404


@pytest.mark.asyncio
async def test_invalid_uuid_handling(uuid_client):
invalid_uuid = "not-a-uuid"

response = uuid_client.get(f"/uuid-test/get/{invalid_uuid}")
assert response.status_code == 404

response = uuid_client.get(f"/custom-uuid-test/get/{invalid_uuid}")
assert response.status_code == 404


@pytest.mark.asyncio
async def test_uuid_list_endpoint(uuid_client):
created_ids = []
Expand Down

0 comments on commit 044c2ed

Please sign in to comment.