Skip to content

Commit f7b92ea

Browse files
committed
testing the pytest-axe mark
1 parent 178a689 commit f7b92ea

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

noxfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def test(session: nox.Session) -> None:
8888
if _should_install(session):
8989
session.install("-e", ".[test]")
9090
session.run(*split("pybabel compile -d src/pydata_sphinx_theme/locale -D sphinx"))
91-
session.run("pytest", "-k", "not a11y", *session.posargs)
91+
session.run("pytest", *session.posargs)
9292

9393

9494
@nox.session()
@@ -109,7 +109,7 @@ def a11y(session: nox.Session) -> None:
109109
session.run("nox", "-s", "docs")
110110
# The next step would be to open a server to the docs for Playwright, but
111111
# that is done in the test file, along with the accessibility checks.
112-
session.run("pytest", "-k", "a11y", *session.posargs)
112+
session.run("pytest", "--axe", *session.posargs)
113113

114114

115115
@nox.session(name="test-sphinx")

tests/test_a11y.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ def url_base():
6969
process.wait()
7070

7171

72+
@pytest.mark.accessibility
7273
@pytest.mark.parametrize("theme", ["light", "dark"])
7374
@pytest.mark.parametrize(
7475
"url_page,selector",

0 commit comments

Comments
 (0)