Test improvements and fixed deprecation warnings (#2464)

* `asyncio_default_fixture_loop_scope = function`
* Fix a bunch of BeautifulSoup deprecation warnings
* Fix for PytestUnraisableExceptionWarning: Exception ignored in: <_io.FileIO [closed]>
* xfail for sql_time_limit tests (these can be flaky in CI)

Refs #2461
This commit is contained in:
Simon Willison 2025-02-04 14:49:52 -08:00 committed by GitHub
commit 53a3b3c80e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 49 additions and 44 deletions

View file

@ -7,7 +7,7 @@ def last_event(datasette):
def assert_footer_links(soup):
footer_links = soup.find("footer").findAll("a")
footer_links = soup.find("footer").find_all("a")
assert 4 == len(footer_links)
datasette_link, license_link, source_link, about_link = footer_links
assert "Datasette" == datasette_link.text.strip()