Skip to content

Commit

Permalink
Avoid error in Python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Jan 23, 2024
1 parent dc35286 commit d9c55be
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_proxy_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
import pytest


@pytest.fixture
def non_mocked_hosts():
# This ensures httpx-mock will not affect Datasette's own
# httpx calls made in the tests by datasette.client:
return ["localhost"]


@pytest.mark.asyncio
async def test_proxy_plugin(httpx_mock):
httpx_mock.add_response(
Expand Down

0 comments on commit d9c55be

Please sign in to comment.