Spaces:
Sleeping
Sleeping
fix ci path handling for data-backed tests
Browse filesReplaces Windows-only absolute fixture paths with repository-relative paths so runbook and incident history tests pass consistently on Linux GitHub runners.
Made-with: Cursor
- tests/test_incident_history.py +1 -1
- tests/test_runbooks.py +1 -1
tests/test_incident_history.py
CHANGED
|
@@ -6,7 +6,7 @@ from pathlib import Path
|
|
| 6 |
|
| 7 |
from env.incident_history import HistoricalIncident, IncidentHistoryStore
|
| 8 |
|
| 9 |
-
_HISTORY_PATH = Path(
|
| 10 |
|
| 11 |
|
| 12 |
def _store() -> IncidentHistoryStore:
|
|
|
|
| 6 |
|
| 7 |
from env.incident_history import HistoricalIncident, IncidentHistoryStore
|
| 8 |
|
| 9 |
+
_HISTORY_PATH = Path(__file__).resolve().parents[1] / "tasks" / "history_incidents.json"
|
| 10 |
|
| 11 |
|
| 12 |
def _store() -> IncidentHistoryStore:
|
tests/test_runbooks.py
CHANGED
|
@@ -8,7 +8,7 @@ from pathlib import Path
|
|
| 8 |
from env.runbooks import Runbook, RunbookEngine, RunbookStep
|
| 9 |
|
| 10 |
|
| 11 |
-
_RUNBOOKS_PATH = Path(
|
| 12 |
|
| 13 |
|
| 14 |
def _engine() -> RunbookEngine:
|
|
|
|
| 8 |
from env.runbooks import Runbook, RunbookEngine, RunbookStep
|
| 9 |
|
| 10 |
|
| 11 |
+
_RUNBOOKS_PATH = Path(__file__).resolve().parents[1] / "tasks" / "runbooks.json"
|
| 12 |
|
| 13 |
|
| 14 |
def _engine() -> RunbookEngine:
|