Anuj2209 commited on
Commit
12c8ebe
·
1 Parent(s): ca51294

fix ci path handling for data-backed tests

Browse files

Replaces 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 CHANGED
@@ -6,7 +6,7 @@ from pathlib import Path
6
 
7
  from env.incident_history import HistoricalIncident, IncidentHistoryStore
8
 
9
- _HISTORY_PATH = Path("F:/Coding/OpenEnv/tasks/history_incidents.json")
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("F:/Coding/OpenEnv/tasks/runbooks.json")
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: