mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-22 18:29:34 +00:00
adapt CanAccessLookup to api key auth
This commit is contained in:
1 parent
b5d65133f3
commit
52e53da9ef
10 files changed
+75
-9
No files matched your search
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user