Skip to content

Commit

Permalink
Works on my machine, but, hey, that's fine
Browse files Browse the repository at this point in the history
  • Loading branch information
LevBernstein committed Oct 28, 2024
1 parent 8d1e36b commit 43fc778
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bb_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2710,6 +2710,7 @@ async def test_search_valid(searchterm: str) -> None:
)
assert await Bot.cmd_search(ctx, searchterm=searchterm) == 1
url = (await ch.history().next()).embeds[0].description
assert isinstance(url, str)
async with httpx.AsyncClient(timeout=10) as client:
r = await client.get(url)
assert response_ok(r)
Expand All @@ -2727,6 +2728,7 @@ async def test_search_empty_argument_redirects_to_home() -> None:
)
assert await Bot.cmd_search(ctx, searchterm="") == 1
url = (await ch.history().next()).embeds[0].description
assert isinstance(url, str)
async with httpx.AsyncClient(timeout=10) as client:
r = await client.get(url, follow_redirects=True)
assert response_ok(r)
Expand Down

0 comments on commit 43fc778

Please sign in to comment.