Skip to content

Commit 464ce0d

Browse files
updated unit test
1 parent 1da0d93 commit 464ce0d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

unit_tests/sources/declarative/auth/test_oauth.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,16 @@ def test_refresh_request_headers(self):
8181
config=config,
8282
token_expiry_date="{{ config['token_expiry_date'] }}",
8383
refresh_request_headers={
84-
"Authorization": "<TOKEN>",
84+
"Authorization": "Basic {{ [config['client_id'], config['client_secret']] | join(':') | base64encode }}",
8585
"Content-Type": "application/x-www-form-urlencoded",
8686
},
8787
parameters=parameters,
8888
)
8989
headers = oauth.build_refresh_request_headers()
90-
expected = {"Authorization": "<TOKEN>", "Content-Type": "application/x-www-form-urlencoded"}
90+
expected = {
91+
"Authorization": "Basic c29tZV9jbGllbnRfaWQ6c29tZV9jbGllbnRfc2VjcmV0",
92+
"Content-Type": "application/x-www-form-urlencoded",
93+
}
9194
assert headers == expected
9295

9396
oauth = DeclarativeOauth2Authenticator(

0 commit comments

Comments
 (0)