Skip to content

Commit

Permalink
black test
Browse files Browse the repository at this point in the history
  • Loading branch information
Chiara Rasi committed Jan 24, 2025
1 parent 50da544 commit 8dc1cf4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/endpoints/test_endpoint_exons.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,14 @@ async def mock_async_generator(*args, **kwargs):
for line in exons_lines:
yield line.encode("utf-8")

mocker.patch("schug.endpoints.exons.stream_resource", side_effect=mock_async_generator)
mocker.patch(
"schug.endpoints.exons.stream_resource", side_effect=mock_async_generator
)

# WHEN sending a request to Biomart to retrieve exons in the given build
response: Response = client.get(f"{endpoints.ENSEMBL_EXONS.value}?build={build}&max_retries=10")
response: Response = client.get(
f"{endpoints.ENSEMBL_EXONS.value}?build={build}&max_retries=10"
)

# THEN it should return success
assert response.status_code == status.HTTP_200_OK
Expand Down

0 comments on commit 8dc1cf4

Please sign in to comment.