fix a load of test

This commit is contained in:
Ross
2023-11-27 12:08:45 +00:00
parent 95c136d3f3
commit 5cc57587aa
16 changed files with 209 additions and 67 deletions
+5 -1
View File
@@ -241,7 +241,10 @@ def test_cid_management(client, create_cid_manager, django_user_model):
for url in urls:
response = client.get(url)
assert response.status_code == 403
if response.status_code == 302:
assert "accounts/login/" in response.url
else:
assert response.status_code == 403
pass
@@ -250,6 +253,7 @@ def test_cid_management(client, create_cid_manager, django_user_model):
client.force_login(cid_manager)
for url in urls:
print(url)
response = client.get(url)
assert response.status_code == 200