Skip to content

Commit

Permalink
add pytest marker external
Browse files Browse the repository at this point in the history
  • Loading branch information
ZehraVictoria committed Feb 6, 2025
1 parent 34c3b04 commit e996378
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ wheel = { cmd = "pdm build --no-sdist" }
mypy-daemon = { cmd = "pdm run dmypy run --timeout 7200 -- mex" }
lint = { cmd = "pre-commit run --all-files" }
unit = { cmd = "pdm run pytest -m 'not integration'" }
test = { cmd = "pdm run pytest" }
test = { cmd = "pdm run pytest -m 'not external'" }
all = { composite = ["install-all", "lint", "test", "doc"] }

[tool.pydantic-mypy]
Expand All @@ -87,7 +87,10 @@ addopts = [
"--pdbcls=IPython.terminal.debugger:TerminalPdb",
"--random-order-bucket=global",
]
markers = "integration: mark a test as integration test"
markers = [
"integration: mark a test as integration test",
"external: mark a test as external integration test"
]

[tool.ruff]
fix = true
Expand Down
1 change: 1 addition & 0 deletions tests/aux_search/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def test_aux_navbar(aux_page: Page) -> None:


@pytest.mark.integration
@pytest.mark.external
@pytest.mark.usefixtures("load_dummy_data")
def test_search_results(aux_page: Page) -> None:
page = aux_page
Expand Down

0 comments on commit e996378

Please sign in to comment.