Skip to content

Commit 231b12f

Browse files
pdudotdevclaude
andcommitted
Fix CI: update hardcoded legacy/ path in test_derivation.py
test_derivation.py had its own path to legacy/INTENT.json that was missed when moving test data to testing/mock/resources/. Also update stale comments in conftest.py to reflect the new location. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent a6be6d1 commit 231b12f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

testing/mock/conftest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
_transport_mod.close_device_session = AsyncMock()
7878
sys.modules["transport"] = _transport_mod
7979

80-
# ── Step 4: Load legacy/INTENT.json as mock intent ────────────────────────────
80+
# ── Step 4: Load testing/mock/resources/INTENT.json as mock intent ───────────
8181
_INTENT_JSON = _ROOT / "testing" / "mock" / "resources" / "INTENT.json"
8282
MOCK_INTENT: dict = json.loads(_INTENT_JSON.read_text())
8383

@@ -86,11 +86,11 @@
8686

8787
@pytest.fixture
8888
def mock_devices() -> dict:
89-
"""Device inventory from legacy/NETWORK.json."""
89+
"""Device inventory from testing/mock/resources/NETWORK.json."""
9090
return dict(MOCK_DEVICES)
9191

9292

9393
@pytest.fixture
9494
def mock_intent() -> dict:
95-
"""Network intent from legacy/INTENT.json."""
95+
"""Network intent from testing/mock/resources/INTENT.json."""
9696
return dict(MOCK_INTENT)

testing/mock/unit/test_derivation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from validation.assertions import AssertionType
66
from validation.derivation import derive_assertions
77

8-
_INTENT = json.loads((Path(__file__).parent.parent.parent.parent / "legacy" / "INTENT.json").read_text())
8+
_INTENT = json.loads((Path(__file__).parent.parent / "resources" / "INTENT.json").read_text())
99

1010

1111
def test_derive_total_count():

0 commit comments

Comments
 (0)