Skip to content

Commit

Permalink
Use correct path
Browse files Browse the repository at this point in the history
  • Loading branch information
payetvin committed Jan 30, 2025
1 parent 0ae1b84 commit 62bc553
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/tests/run-study-tests/test_unfeasible_problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]))
Expand All @@ -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]))
Expand All @@ -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]))
Expand All @@ -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]))
Expand Down

0 comments on commit 62bc553

Please sign in to comment.