Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
malmans2 committed Oct 18, 2024
1 parent 7a70daf commit 938cbdc
Showing 1 changed file with 20 additions and 21 deletions.
41 changes: 20 additions & 21 deletions tests/test_40_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,28 +21,27 @@


@pytest.fixture
@responses.activate
def results() -> Results:
with responses.RequestsMock() as rsps:
rsps.add(
responses.GET,
RESULTS_URL,
json=RESULTS_JSON,
status=200,
content_type="application/json",
)
results = Results.from_request(
"get",
RESULTS_URL,
headers={},
session=None,
retry_options={"maximum_tries": 1},
request_options={},
download_options={},
sleep_max=120,
cleanup=False,
log_callback=None,
)
return results
responses.add(
responses.GET,
RESULTS_URL,
json=RESULTS_JSON,
status=200,
content_type="application/json",
)
return Results.from_request(
"get",
RESULTS_URL,
headers={},
session=None,
retry_options={"maximum_tries": 1},
request_options={},
download_options={},
sleep_max=120,
cleanup=False,
log_callback=None,
)


@pytest.mark.parametrize(
Expand Down

0 comments on commit 938cbdc

Please sign in to comment.