diff --git a/scripts/tests/test_base_not_main_no_paths_filter.py b/scripts/tests/test_base_not_main_no_paths_filter.py index b1965cfa5c..bca7bb999c 100644 --- a/scripts/tests/test_base_not_main_no_paths_filter.py +++ b/scripts/tests/test_base_not_main_no_paths_filter.py @@ -25,6 +25,7 @@ import sys from pathlib import Path +import pytest import yaml REPO_ROOT = Path(__file__).resolve().parents[2] diff --git a/scripts/tests/test_candidate_delivered.py b/scripts/tests/test_candidate_delivered.py index ad57c09b1b..86c5c52a25 100644 --- a/scripts/tests/test_candidate_delivered.py +++ b/scripts/tests/test_candidate_delivered.py @@ -15,6 +15,8 @@ import sys import os +import pytest + sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from candidate_delivered import classify, is_epic, _parse_cross_ref_events # noqa: E402 diff --git a/scripts/tests/test_pr_close_keyword_guard.py b/scripts/tests/test_pr_close_keyword_guard.py index 7450d1ef36..996ddc1458 100644 --- a/scripts/tests/test_pr_close_keyword_guard.py +++ b/scripts/tests/test_pr_close_keyword_guard.py @@ -17,6 +17,8 @@ import sys from pathlib import Path +import pytest + # Make ``scripts/ci`` importable (sibling of ``scripts/tests``). sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "ci")) diff --git a/scripts/tests/test_series_saturation.py b/scripts/tests/test_series_saturation.py index b69566a467..d9d40bd642 100644 --- a/scripts/tests/test_series_saturation.py +++ b/scripts/tests/test_series_saturation.py @@ -21,6 +21,8 @@ import sys from pathlib import Path +import pytest + REPO_ROOT = Path(__file__).resolve().parents[2] sys.path.insert(0, str(REPO_ROOT / "scripts")) diff --git a/scripts/tests/test_variation_genre_recensement.py b/scripts/tests/test_variation_genre_recensement.py index bd13d0b1bf..82ace4c185 100644 --- a/scripts/tests/test_variation_genre_recensement.py +++ b/scripts/tests/test_variation_genre_recensement.py @@ -11,6 +11,8 @@ import os import sys +import pytest + # Make scripts/ importable (sibling of tests/), same pattern as test_grain_tag.py sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))