We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a828e2 commit 16aa0b3Copy full SHA for 16aa0b3
codeforlife/tests/api.py
@@ -37,8 +37,17 @@ class APIClient(_APIClient, t.Generic[RequestUser]):
37
38
_test_case: "APITestCase[RequestUser]"
39
40
- def __init__(self, enforce_csrf_checks: bool = False, **defaults):
41
- super().__init__(enforce_csrf_checks, **defaults)
+ def __init__(
+ self,
42
+ enforce_csrf_checks: bool = False,
43
+ raise_request_exception=False,
44
+ **defaults,
45
+ ):
46
+ super().__init__(
47
+ enforce_csrf_checks,
48
+ raise_request_exception=raise_request_exception,
49
50
+ )
51
52
self.request_factory = APIRequestFactory(
53
self.get_request_user_class(),
0 commit comments