diff --git a/noxfile.py b/noxfile.py index 4c82fc9f7..d05948808 100644 --- a/noxfile.py +++ b/noxfile.py @@ -88,7 +88,7 @@ def test(session: nox.Session) -> None: if _should_install(session): session.install("-e", ".[test]") session.run(*split("pybabel compile -d src/pydata_sphinx_theme/locale -D sphinx")) - session.run("pytest", "-k", "not a11y", *session.posargs) + session.run("pytest", *session.posargs) @nox.session() @@ -109,7 +109,7 @@ def a11y(session: nox.Session) -> None: session.run("nox", "-s", "docs") # The next step would be to open a server to the docs for Playwright, but # that is done in the test file, along with the accessibility checks. - session.run("pytest", "-k", "a11y", *session.posargs) + session.run("pytest", "--axe", *session.posargs) @nox.session(name="test-sphinx") diff --git a/tests/test_a11y.py b/tests/test_a11y.py index cb65bbb46..ecbfe7a94 100644 --- a/tests/test_a11y.py +++ b/tests/test_a11y.py @@ -69,6 +69,7 @@ def url_base(): process.wait() +@pytest.mark.accessibility @pytest.mark.parametrize("theme", ["light", "dark"]) @pytest.mark.parametrize( "url_page,selector",