Mark the oracle routing test deselectable (-m 'not oracle')

The JAR route makes the test ~50s; tag it so quick iteration can skip it while
it still runs by default for validation.
This commit is contained in:
Ryan Malloy 2026-07-12 08:12:59 -06:00
parent 18f3afc8a5
commit 0e508107ba
2 changed files with 6 additions and 0 deletions

View File

@ -58,3 +58,6 @@ minversion = "7.0"
testpaths = ["tests"]
pythonpath = ["tests"]
addopts = ["-ra", "--strict-markers"]
markers = [
"oracle: runs the FreeRouting JAR (slow, needs Java); deselect with -m 'not oracle'",
]

View File

@ -9,6 +9,8 @@ from __future__ import annotations
from pathlib import Path
import pytest
from oracle import HAS_ORACLE, requires_oracle, route_dsn, routed_net_set, routed_nets
FIXTURES = Path(__file__).parent / "dsn" / "fixtures"
@ -21,6 +23,7 @@ def test_oracle_harness_imports():
assert isinstance(HAS_ORACLE, bool)
@pytest.mark.oracle
@requires_oracle
def test_oracle_routes_and_reports_connectivity():
"""Reference FreeRouting routes a routable KiCad board and we can read it back.