diff --git a/pytest.ini b/pytest.ini index 11c2331..cb0da7d 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,4 +1,7 @@ [pytest] asyncio_mode = auto asyncio_default_fixture_loop_scope = function -addopts = -p no:warnings --doctest-modules --ignore=setup.py --verbose \ No newline at end of file +addopts = -p no:warnings --doctest-modules --ignore=setup.py --verbose +markers = + asyncio: marks tests as async +asyncio_fixture_scope = function \ No newline at end of file diff --git a/tox.ini b/tox.ini index b78af38..0364f20 100644 --- a/tox.ini +++ b/tox.ini @@ -15,7 +15,7 @@ commands = playwright install chromium playwright install-deps chromium firefox camoufox fetch --browserforge - pytest --cov=scrapling --cov-report=xml -n auto + pytest --cov=scrapling --cov-report=xml -n auto --asyncio-mode=auto [testenv:pre-commit] basepython = python3