Skip to content

Commit

Permalink
simplify token info test
Browse files Browse the repository at this point in the history
  • Loading branch information
zigaLuksic committed Dec 8, 2023
1 parent c3d6015 commit d1f2054
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/download/test_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,7 @@ def test_session(session: SentinelHubSession) -> None:

@pytest.mark.sh_integration()
def test_token_info(session: SentinelHubSession) -> None:
info = session.info()

for key in ["exp", "iat", "jti", "iss", "sub", "typ", "azp", "scope", "account"]:
assert key in info
assert "azp" in session.info()


def test_session_content_and_headers(fake_config: SHConfig, fake_token: dict[str, Any], requests_mock: Mocker) -> None:
Expand Down

0 comments on commit d1f2054

Please sign in to comment.