mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
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:
parent
962da77d61
commit
53a3b3c80e
11 changed files with 49 additions and 44 deletions
|
|
@ -390,7 +390,7 @@ async def test_permissions_debug(ds_client, filter_):
|
|||
assert fragment in response.text
|
||||
# Should show one failure and one success
|
||||
soup = Soup(response.text, "html.parser")
|
||||
check_divs = soup.findAll("div", {"class": "check"})
|
||||
check_divs = soup.find_all("div", {"class": "check"})
|
||||
checks = [
|
||||
{
|
||||
"action": div.select_one(".check-action").text,
|
||||
|
|
@ -929,6 +929,7 @@ async def test_actor_endpoint_allows_any_token():
|
|||
}
|
||||
|
||||
|
||||
@pytest.mark.serial
|
||||
@pytest.mark.parametrize(
|
||||
"options,expected",
|
||||
(
|
||||
|
|
@ -983,7 +984,7 @@ async def test_actor_endpoint_allows_any_token():
|
|||
),
|
||||
),
|
||||
)
|
||||
def test_cli_create_token(event_loop, options, expected):
|
||||
def test_cli_create_token(options, expected):
|
||||
runner = CliRunner()
|
||||
result1 = runner.invoke(
|
||||
cli,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue