Skip to content

Commit

Permalink
Fix flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
tabgok committed Feb 13, 2024
1 parent 262b453 commit 01f6c58
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions tests/test_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,17 +134,13 @@ async def test_session_requests(


async def test_404_when_session_doesnt_exist(agent):
"""
When a session that doesn't exist is requested, we should get an error.
"""
"""When a session that doesn't exist is requested, we should get an error."""
resp = await agent.get("/test/session/traces", params={"test_session_token": "nonexistent"})
assert resp.status == 404


async def test_empty_session_ok(agent):
"""
When a session exists but has no traces, we should get an OK with an empty list returned
"""
"""When a session exists but has no traces, we should get an OK with an empty list returned"""
resp = await agent.get("/test/session/start", params={"test_session_token": "emptysession"})
assert resp.status == 200
resp = await agent.get("/test/session/traces", params={"test_session_token": "emptysession"})
Expand All @@ -153,9 +149,7 @@ async def test_empty_session_ok(agent):


async def test_session_association_of_untokenized_traces(agent, do_reference_v04_http_trace):
"""
Requests sent without a session token are associated with the session that proceeds it
"""
"""Requests sent without a session token are associated with the session that proceeds it"""
resp = await agent.get("/test/session/start", params={"test_session_token": "sessiona"})
assert resp.status == 200
await do_reference_v04_http_trace()
Expand All @@ -172,9 +166,7 @@ async def test_session_association_of_untokenized_traces(agent, do_reference_v04
async def test_session_results_with_token_but_no_session_start(
agent, do_reference_v04_http_trace, v04_reference_http_trace_payload_data_raw
):
"""
Requests sent without a session token are associated with the session that proceeds it
"""
"""Requests sent without a session token are associated with the session that proceeds it"""
await do_reference_v04_http_trace(token="nosessionstart")
resp = await agent.get("/test/session/traces", params={"test_session_token": "nosessionstart"})
assert resp.status == 200
Expand Down

0 comments on commit 01f6c58

Please sign in to comment.