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:
parent
18f3afc8a5
commit
0e508107ba
@ -58,3 +58,6 @@ minversion = "7.0"
|
|||||||
testpaths = ["tests"]
|
testpaths = ["tests"]
|
||||||
pythonpath = ["tests"]
|
pythonpath = ["tests"]
|
||||||
addopts = ["-ra", "--strict-markers"]
|
addopts = ["-ra", "--strict-markers"]
|
||||||
|
markers = [
|
||||||
|
"oracle: runs the FreeRouting JAR (slow, needs Java); deselect with -m 'not oracle'",
|
||||||
|
]
|
||||||
|
|||||||
@ -9,6 +9,8 @@ from __future__ import annotations
|
|||||||
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
|
import pytest
|
||||||
|
|
||||||
from oracle import HAS_ORACLE, requires_oracle, route_dsn, routed_net_set, routed_nets
|
from oracle import HAS_ORACLE, requires_oracle, route_dsn, routed_net_set, routed_nets
|
||||||
|
|
||||||
FIXTURES = Path(__file__).parent / "dsn" / "fixtures"
|
FIXTURES = Path(__file__).parent / "dsn" / "fixtures"
|
||||||
@ -21,6 +23,7 @@ def test_oracle_harness_imports():
|
|||||||
assert isinstance(HAS_ORACLE, bool)
|
assert isinstance(HAS_ORACLE, bool)
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.oracle
|
||||||
@requires_oracle
|
@requires_oracle
|
||||||
def test_oracle_routes_and_reports_connectivity():
|
def test_oracle_routes_and_reports_connectivity():
|
||||||
"""Reference FreeRouting routes a routable KiCad board and we can read it back.
|
"""Reference FreeRouting routes a routable KiCad board and we can read it back.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user