Skip to content

Commit

Permalink
Mark tests that use the network
Browse files Browse the repository at this point in the history
These two tests uses intersphinx, and the marker allows skipping them if
there is no network available.
  • Loading branch information
QuLogic committed Jul 8, 2024
1 parent d2a9675 commit 30e3375
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ ignore_missing_imports = true
module = "autoapi.documenters"
ignore_errors = true

[tool.pytest.ini_options]
markers = [
"network: Tests that use network access.",
]

[tool.ruff.lint.pydocstyle]
convention = "google"

Expand Down
2 changes: 2 additions & 0 deletions tests/python/test_pyintegration.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,7 @@ def test_integration(self, parse):
assert "f_no_cd(a: int, b: int, /, *, e: float, f: float)" in f_no_cd.text


@pytest.mark.network
@pytest.mark.skipif(
sys.version_info < (3, 10), reason="Union pipe syntax requires Python >=3.10"
)
Expand Down Expand Up @@ -592,6 +593,7 @@ def test_integration(self, parse):
assert links[1].text == "None"


@pytest.mark.network
@pytest.mark.skipif(
sys.version_info < (3, 12), reason="PEP-695 support requires Python >=3.12"
)
Expand Down

0 comments on commit 30e3375

Please sign in to comment.