adapt CanAccessLookup to api key auth

This commit is contained in:
imperosol
2025-05-20 21:04:49 +02:00
parent b5d65133f3
commit 52e53da9ef
10 changed files with 75 additions and 9 deletions

View File

@ -68,7 +68,7 @@ class TestUVSearch(TestCase):
def test_permissions(self):
# Test with anonymous user
response = self.client.get(self.url)
assert response.status_code == 403
assert response.status_code == 401
# Test with not subscribed user
self.client.force_login(baker.make(User))