Skip to content

Commit

Permalink
finally
Browse files Browse the repository at this point in the history
  • Loading branch information
chrstnbwnkl committed Jun 7, 2024
1 parent 0e26437 commit 78dd19b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions tests/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,10 @@ def test_headers(self):

client = ClientMock("https://httpbin.org", **dict(timeout, **headers))

self.assertEqual(timeout, timeout | client.kwargs)
self.assertEqual(headers["headers"], headers["headers"] | client.kwargs["headers"])
self.assertTrue(timeout.items() <= {**timeout, **client.kwargs}.items())
self.assertTrue(
headers["headers"].items() <= {**headers["headers"], **client.kwargs["headers"]}.items()
)

@responses.activate
def test_req_property(self):
Expand Down
4 changes: 3 additions & 1 deletion tests/test_openrouteservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,9 @@ def test_key_in_header(self):
self.client.directions(**query)

header_dict = CaseInsensitiveDict({"Authorization": self.key})
self.assertEqual(header_dict, header_dict | responses.calls[0].request.headers)
self.assertTrue(
header_dict.items() <= {**header_dict, **responses.calls[0].request.headers}.items()
)

@responses.activate
def test_alternative_routes_error(self):
Expand Down

0 comments on commit 78dd19b

Please sign in to comment.