diff --git a/src/tests/run-study-tests/test_unfeasible_problem.py b/src/tests/run-study-tests/test_unfeasible_problem.py index d6eb908b9e..4e5a55153c 100644 --- a/src/tests/run-study-tests/test_unfeasible_problem.py +++ b/src/tests/run-study-tests/test_unfeasible_problem.py @@ -6,14 +6,14 @@ from fixtures import * -ALL_STUDIES_PATH = Path('../resources/Antares_Simulator_Tests').resolve() +ALL_STUDIES_PATH = Path('../resources/Antares_Simulator_Tests_NR/unfeasible-problem').resolve() # -------------------------------------------------------------- # Test behavior when an infeasible problem occurs # -------------------------------------------------------------- @pytest.mark.unfeasible -@pytest.mark.parametrize('study_path', [ALL_STUDIES_PATH / "specific-tests" / "unfeasible-problem" / "unfeasible_problem_01"], indirect=True) +@pytest.mark.parametrize('study_path', [ALL_STUDIES_PATH / "unfeasible_problem_01"], indirect=True) def test_unfeasible_problem_01__error_verbose(study_path, check_runner): errors_on_weeks = [] errors_on_weeks.append(weeks_in_year(year=3, weeks=[19])) @@ -25,7 +25,7 @@ def test_unfeasible_problem_01__error_verbose(study_path, check_runner): check_runner.run(checks) @pytest.mark.unfeasible -@pytest.mark.parametrize('study_path', [ALL_STUDIES_PATH / "specific-tests" / "unfeasible-problem" / "unfeasible_problem_01"], indirect=True) +@pytest.mark.parametrize('study_path', [ALL_STUDIES_PATH / "unfeasible_problem_01"], indirect=True) def test_unfeasible_problem_01__error_dry(study_path, check_runner): errors_on_weeks = [] errors_on_weeks.append(weeks_in_year(year=3, weeks=[19])) @@ -37,7 +37,7 @@ def test_unfeasible_problem_01__error_dry(study_path, check_runner): check_runner.run(checks) @pytest.mark.unfeasible -@pytest.mark.parametrize('study_path', [ALL_STUDIES_PATH / "specific-tests" / "unfeasible-problem" / "unfeasible_problem_01"], indirect=True) +@pytest.mark.parametrize('study_path', [ALL_STUDIES_PATH / "unfeasible_problem_01"], indirect=True) def test_unfeasible_problem_01__warning_verbose(study_path, check_runner): warnings_on_weeks = [] warnings_on_weeks.append(weeks_in_year(year=3, weeks=[19])) @@ -52,7 +52,7 @@ def test_unfeasible_problem_01__warning_verbose(study_path, check_runner): check_runner.run(checks) @pytest.mark.unfeasible -@pytest.mark.parametrize('study_path', [ALL_STUDIES_PATH / "specific-tests" / "unfeasible-problem" / "unfeasible_problem_01"], indirect=True) +@pytest.mark.parametrize('study_path', [ALL_STUDIES_PATH / "unfeasible_problem_01"], indirect=True) def test_unfeasible_problem_01__warning_dry(study_path, check_runner): warnings_on_weeks = [] warnings_on_weeks.append(weeks_in_year(year=3, weeks=[19]))