Skip to content

Commit

Permalink
Update tests for latest pytest-httpx
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Aug 5, 2024
1 parent 4c5c1f9 commit 25c3c3b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_remote_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def non_mocked_hosts():
async def test_remote_metadata(httpx_mock):
httpx_mock.add_response(
url=TEST_URL,
data=b"title: This is the remote metadata title",
text="title: This is the remote metadata title",
)
datasette = Datasette(
[],
Expand All @@ -31,7 +31,7 @@ async def test_remote_metadata(httpx_mock):
async def test_ttl(httpx_mock):
httpx_mock.add_response(
url=TEST_URL,
data=b"title: Testing TTL",
text="title: Testing TTL",
)
datasette = Datasette(
[],
Expand Down Expand Up @@ -60,7 +60,7 @@ async def test_ttl(httpx_mock):
async def test_headers(httpx_mock):
httpx_mock.add_response(
url=TEST_URL,
data=b"title: Testing TTL",
text="title: Testing TTL",
)
datasette = Datasette(
[],
Expand All @@ -86,7 +86,7 @@ async def test_cachebust(httpx_mock, already_has_querystring):
url = TEST_URL
if already_has_querystring:
url += "?foo=bar"
httpx_mock.add_response(data=b"title: Testing TTL", method="GET")
httpx_mock.add_response(text="title: Testing TTL", method="GET")
datasette = Datasette(
[],
memory=True,
Expand Down

0 comments on commit 25c3c3b

Please sign in to comment.