From ac1802d4aa12483cb6cfda830f53b651b7216068 Mon Sep 17 00:00:00 2001 From: Joe Wesch Date: Tue, 26 Mar 2024 19:56:10 -0500 Subject: [PATCH] Fixes test --- tests/unit/test_request.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/test_request.py b/tests/unit/test_request.py index 313bbc2..263b840 100644 --- a/tests/unit/test_request.py +++ b/tests/unit/test_request.py @@ -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"}, )