Application fully migrated to modular approach
This commit is contained in:
@@ -130,18 +130,6 @@ class TestAdminAPI:
|
||||
assert response.status_code == 403
|
||||
assert "Access denied" in response.json()["detail"] or "admin" in response.json()["detail"].lower()
|
||||
|
||||
def test_admin_endpoints_require_authentication(self, client):
|
||||
"""Test that admin endpoints require authentication"""
|
||||
endpoints = [
|
||||
"/api/v1/admin/users",
|
||||
"/api/v1/admin/shops",
|
||||
"/api/v1/admin/marketplace-import-jobs"
|
||||
]
|
||||
|
||||
for endpoint in endpoints:
|
||||
response = client.get(endpoint)
|
||||
assert response.status_code == 401 # Unauthorized
|
||||
|
||||
def test_admin_pagination_users(self, client, admin_headers, test_user, test_admin):
|
||||
"""Test user pagination works correctly"""
|
||||
# Test first page
|
||||
|
||||
Reference in New Issue
Block a user