File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
unit_tests/sources/declarative/auth Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -314,7 +314,9 @@ def test_initialize_declarative_oauth_with_token_expiry_date_as_timestamp(
314
314
assert isinstance (oauth ._token_expiry_date , AirbyteDateTime )
315
315
assert oauth .get_token_expiry_date () == ab_datetime_parse (expected_date )
316
316
317
- def test_given_no_access_token_but_expiry_in_the_future_when_refresh_token_then_fetch_access_token (self ) -> None :
317
+ def test_given_no_access_token_but_expiry_in_the_future_when_refresh_token_then_fetch_access_token (
318
+ self ,
319
+ ) -> None :
318
320
expiry_date = ab_datetime_now ().add (timedelta (days = 1 ))
319
321
oauth = DeclarativeOauth2Authenticator (
320
322
token_refresh_endpoint = "https://refresh_endpoint.com/" ,
@@ -327,7 +329,6 @@ def test_given_no_access_token_but_expiry_in_the_future_when_refresh_token_then_
327
329
grant_type = "client" ,
328
330
)
329
331
330
-
331
332
with HttpMocker () as http_mocker :
332
333
http_mocker .post (
333
334
HttpRequest (
You can’t perform that action at this time.
0 commit comments