mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-02 08:54:18 +00:00
remove deprecated api csrf argument
This commit is contained in:
1 parent
02f7e10729
commit
2e9e1b6a78
10 files changed
+66
-44
No files matched your search
@@ -46,7 +46,7 @@ class TestFetchFamilyApi(TestCase):
|
||||
response = self.client.get(
|
||||
reverse("api:family_graph", args=[self.main_user.id])
|
||||
)
|
||||
assert response.status_code == 403
|
||||
assert response.status_code == 401
|
||||
|
||||
self.client.force_login(baker.make(User)) # unsubscribed user
|
||||
response = self.client.get(
|
||||
|
||||
@@ -269,7 +269,7 @@ def test_apply_rights_recursively():
|
||||
SimpleUploadedFile(
|
||||
"test.jpg", content=RED_PIXEL_PNG, content_type="image/jpg"
|
||||
),
|
||||
403,
|
||||
401,
|
||||
),
|
||||
(
|
||||
lambda: baker.make(User),
|
||||
|
||||
Reference in new issue
Block a user