Skip to content

Commit

Permalink
Rename resinsight
Browse files Browse the repository at this point in the history
test data folder
  • Loading branch information
verveerpj committed Oct 25, 2024
1 parent 3ea90cc commit c9ac100
Show file tree
Hide file tree
Showing 53 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/jobs/well_trajectory/test_well_trajectory_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def test_parameters_config_simple(path_test_data):


def test_parameters_config_resinsight(copy_testdata_tmpdir):
copy_testdata_tmpdir(Path(TEST_DATA) / "resinsight_mlt")
copy_testdata_tmpdir(Path(TEST_DATA) / "resinsight")
config = load_yaml("config.yml")
ConfigSchema.model_validate(config)

Expand Down
10 changes: 5 additions & 5 deletions tests/jobs/well_trajectory/test_well_trajectory_resinsight.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

@pytest.fixture(scope="module")
def well_trajectory_arguments():
return ("-c config.yml -E SPE1CASE1_MLT").split()
return ("-c config.yml -E SPE1CASE1").split()


@pytest.mark.slow
Expand All @@ -38,7 +38,7 @@ def test_start_resinsight(caplog):
def test_well_trajectory_resinsight_main_entry_point_lint(
well_trajectory_arguments, copy_testdata_tmpdir
):
copy_testdata_tmpdir(Path(TEST_DATA) / "resinsight_mlt")
copy_testdata_tmpdir(Path(TEST_DATA) / "resinsight")
with pytest.raises(SystemExit):
main_entry_point([*well_trajectory_arguments, "--lint"])

Expand All @@ -51,7 +51,7 @@ def test_well_trajectory_resinsight_main_entry_point_lint(
def test_well_trajectory_resinsight_main_entry_point_no_mlt(
well_trajectory_arguments, copy_testdata_tmpdir
):
copy_testdata_tmpdir(Path(TEST_DATA) / "resinsight_mlt")
copy_testdata_tmpdir(Path(TEST_DATA) / "resinsight")
for path in Path.cwd().glob("mlt_*.json"):
path.unlink()
main_entry_point(well_trajectory_arguments)
Expand All @@ -67,7 +67,7 @@ def test_well_trajectory_resinsight_main_entry_point_no_mlt(
def test_well_trajectory_resinsight_main_entry_point_mlt(
well_trajectory_arguments, copy_testdata_tmpdir
):
copy_testdata_tmpdir(Path(TEST_DATA) / "resinsight_mlt")
copy_testdata_tmpdir(Path(TEST_DATA) / "resinsight")
main_entry_point(well_trajectory_arguments)

for expected in Path("expected_mlt").glob("**/*"):
Expand All @@ -81,7 +81,7 @@ def test_well_trajectory_resinsight_main_entry_point_mlt(
def test_well_trajectory_resinsight_main_entry_point_mixed(
well_trajectory_arguments, copy_testdata_tmpdir
):
copy_testdata_tmpdir(Path(TEST_DATA) / "resinsight_mlt")
copy_testdata_tmpdir(Path(TEST_DATA) / "resinsight")
for path in Path.cwd().glob("mlt_*.json"):
with path.open(encoding="utf-8") as fp:
guide_points = json.load(fp)
Expand Down
Binary file not shown.

0 comments on commit c9ac100

Please sign in to comment.