Skip to content

Commit

Permalink
Fixes test
Browse files Browse the repository at this point in the history
  • Loading branch information
joewesch committed Mar 27, 2024
1 parent a0362ae commit ac1802d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/test_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

class RequestTestCase(unittest.TestCase):
def test_get_openapi(self):
test = Request("http://localhost:8080/api", Mock())
test = Request("http://localhost:8080/api", Mock(), token="1234")
test.get_openapi()
test.http_session.get.assert_called_with(
"http://localhost:8080/api/docs/?format=openapi",
headers={"Content-Type": "application/json;"},
headers={"Content-Type": "application/json;", "Authorization": "Token 1234"},
)

0 comments on commit ac1802d

Please sign in to comment.