Skip to content

Commit

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

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

self.assertDictContainsSubset(timeout, client.kwargs)
self.assertDictContainsSubset(headers["headers"], client.kwargs["headers"])
self.assertEqual(timeout, timeout | client.kwargs)
self.assertEqual(headers["headers"], headers["headers"] | client.kwargs["headers"])

@responses.activate
def test_req_property(self):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_openrouteservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def test_key_in_header(self):

self.client.directions(**query)

self.assertDictContainsSubset({"Authorization": self.key}, responses.calls[0].request.headers)
self.assertEqual({"Authorization": self.key}, {"Authorization": self.key} | responses.calls[0].request.headers)

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

0 comments on commit a8b2eb3

Please sign in to comment.