Ensure repo root on sys.path before test collection
CI / skip-ci-check (pull_request) Successful in 31s
CI / secret-scan (pull_request) Successful in 29s
CI / python-ci (pull_request) Failing after 1m2s

This commit is contained in:
2026-08-05 18:57:41 -04:00
parent bbba5844d5
commit 4da9ef8c70
+5 -2
View File
@@ -12,9 +12,12 @@ import urllib.error
import urllib.request
from pathlib import Path
import pytest
# Repo root on sys.path for `slack_export` / `server` (CI and local).
REPO_ROOT = Path(__file__).resolve().parents[1]
if str(REPO_ROOT) not in sys.path:
sys.path.insert(0, str(REPO_ROOT))
import pytest
FIXTURE_EXPORT = REPO_ROOT / "tests" / "fixtures" / "mini-export"
TEST_MANIFEST = REPO_ROOT / "tests" / "fixtures" / "test-manifest.json"