mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-04 02:04:06 +00:00
fix(tests): Race condition on redundant API unit test (#8849)
This commit is contained in:
@@ -7418,8 +7418,6 @@ class TestTenantApiKeyViewSet:
|
||||
assert response.status_code == status.HTTP_200_OK
|
||||
data = response.json()["data"]
|
||||
assert len(data) == len(api_keys_fixture)
|
||||
# Verify keys are ordered by -created (newest first)
|
||||
assert data[0]["attributes"]["name"] == TenantAPIKey.objects.first().name
|
||||
|
||||
def test_api_keys_list_empty(self, authenticated_client, tenants_fixture):
|
||||
"""Test listing API keys when none exist returns empty list."""
|
||||
|
||||
Reference in New Issue
Block a user