Skip to content

Commit

Permalink
fix(tests): remove api_headers from being acces
Browse files Browse the repository at this point in the history
  • Loading branch information
jjjermiah committed Jan 28, 2024
1 parent ccda4f3 commit 06e6d42
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions tests/test_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ def test_failed_oauth(failed_oauth2):
assert failed_oauth2.token == -1
assert failed_oauth2.getToken() == 401
assert failed_oauth2.headers is None
assert failed_oauth2.api_headers is None
assert failed_oauth2.expiry_time is None
assert failed_oauth2.refresh_token is None
assert failed_oauth2.refresh_expiry is None
Expand All @@ -51,7 +50,6 @@ def test_getToken_valid_token(oauth2):
assert oauth2.getToken() != 401
assert oauth2.access_token != -1
assert oauth2.token != -1
assert oauth2.api_headers is not None
assert oauth2.headers is not None
assert oauth2.expiry_time is not None
assert oauth2.refresh_token is not None
Expand Down
2 changes: 1 addition & 1 deletion tests/test_nbia.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def test_downloadSeries(nbia_client, nbia_collections, nbia_patients):


def test_nbiaclient_access_token(nbia_client):
assert nbia_client.api_headers is not None
assert nbia_client.headers is not None

def test_getCollections(nbia_collections):
assert isinstance(nbia_collections, list)
Expand Down

0 comments on commit 06e6d42

Please sign in to comment.