Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
yocalebo committed Sep 6, 2024
1 parent b70ffd6 commit 7522476
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/api2/test_api_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,7 @@ def test_api_key_auth_session_list_terminate():
sessions = call("auth.sessions")
my_sessions = []
for s in sessions:
if (
s["credentials"] == "API_KEY"
and s["credentials_data"]["api_key"]["name"] == "Test API Key"
):
if s["credentials"] == "API_KEY" and s["credentials_data"]["api_key"]["name"] == "Test API Key":
my_sessions.append(s)
assert len(my_sessions) == 1, sessions
call("auth.terminate_session", my_sessions[0]["id"])
Expand Down

0 comments on commit 7522476

Please sign in to comment.