Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit aaeb674

Browse files
DevLlinus-funnel
andcommittedFeb 28, 2024
Tidy up the assert_response helper function
Co-authored-by: Linus Huzell <[email protected]>
1 parent f2a67b1 commit aaeb674

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed
 

‎tests/test_utils.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,15 @@ def assertions(request, **kwargs):
1111

1212

1313
def assert_response(
14-
response, json=None, reason=None, status_code=200, text=None, url=None, headers={}
14+
response,
15+
json=None,
16+
reason=None,
17+
status_code=200,
18+
text=None,
19+
url=None,
20+
headers={},
1521
):
16-
assert type(response) == Response
22+
assert isinstance(response) == Response
1723
assert response.status_code == status_code
1824
assert response.reason == reason
1925
assert response.url == url

0 commit comments

Comments
 (0)
Please sign in to comment.