Skip to content

Commit

Permalink
testing the pytest-axe mark
Browse files Browse the repository at this point in the history
  • Loading branch information
drammock committed Apr 12, 2023
1 parent 178a689 commit f7b92ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions noxfile.py
Expand Up @@ -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()
Expand All @@ -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")
Expand Down
1 change: 1 addition & 0 deletions tests/test_a11y.py
Expand Up @@ -69,6 +69,7 @@ def url_base():
process.wait()


@pytest.mark.accessibility
@pytest.mark.parametrize("theme", ["light", "dark"])
@pytest.mark.parametrize(
"url_page,selector",
Expand Down

0 comments on commit f7b92ea

Please sign in to comment.