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 06e6d42 commit 95dd5a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/nbiatoolkit/nbia.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __init__(

@property
def headers(self):
return self.api_headers
return self._api_headers

def query_api(self, endpoint: NBIA_ENDPOINTS, params: dict = {}) -> dict:
query_url = NBIA_ENDPOINTS.BASE_URL.value + endpoint.value
Expand Down
2 changes: 1 addition & 1 deletion tests/test_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def test_failed_oauth(failed_oauth2):
assert failed_oauth2.access_token == -1
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 Down

0 comments on commit 95dd5a3

Please sign in to comment.