chore: rename test

This commit is contained in:
Nilanjan De 2025-04-21 22:03:54 +04:00
parent c28e206fc6
commit c6a2bf76d0
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View file

@ -2407,7 +2407,7 @@ async def global_spend_keys(
except ValueError as e:
raise HTTPException(
status_code=422, detail={"error": f"Invalid limit: {limit}, error: {e}"}
)
) from e
return response

View file

@ -734,10 +734,10 @@ def _compare_nested_dicts(
@pytest.mark.asyncio
async def test_global_spend_keys_endpoint(client, monkeypatch):
async def test_global_spend_keys_endpoint_limit_validation(client, monkeypatch):
"""
Test to ensure that the global_spend_keys endpoint is protected against SQL injection attacks.
Verifies that SQL injection attempts are properly parameterized and not directly interpolated.
Verifies that the limit parameter is properly parameterized and not directly interpolated.
"""
# Create a simple mock for prisma client with empty response
mock_prisma_client = MagicMock()