Skip to content

Commit

Permalink
Remove redundant runpath file test
Browse files Browse the repository at this point in the history
This now has unit tests, so this test is redundant
  • Loading branch information
oyvindeide committed Jan 23, 2024
1 parent 406f039 commit 43ac2e7
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 75 deletions.
2 changes: 0 additions & 2 deletions test-data/poly_example/ASSERT_RUNPATH_FILE

This file was deleted.

1 change: 0 additions & 1 deletion test-data/poly_example/TEST_RUNPATH_FILE

This file was deleted.

34 changes: 0 additions & 34 deletions test-data/poly_example/assert_runpath_file.py

This file was deleted.

1 change: 0 additions & 1 deletion test-data/poly_template/TEST_RUNPATH_FILE

This file was deleted.

37 changes: 0 additions & 37 deletions tests/integration_tests/cli/test_integration_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,43 +41,6 @@ def fixture_mock_cli_run(monkeypatch):
yield mocked_monitor, mocked_thread_join, mocked_thread_start


@pytest.mark.scheduler
@pytest.mark.integration_test
def test_runpath_file(tmpdir, source_root, try_queue_and_scheduler, monkeypatch):
shutil.copytree(
os.path.join(source_root, "test-data", "poly_example"),
os.path.join(str(tmpdir), "poly_example"),
)

with tmpdir.as_cwd():
with open("poly_example/poly.ert", "a", encoding="utf-8") as fh:
config_lines = [
"LOAD_WORKFLOW_JOB ASSERT_RUNPATH_FILE\n"
"LOAD_WORKFLOW TEST_RUNPATH_FILE\n",
"HOOK_WORKFLOW TEST_RUNPATH_FILE PRE_SIMULATION\n",
]

fh.writelines(config_lines)

parser = ArgumentParser(prog="test_main")
parsed = ert_parser(
parser,
[
ENSEMBLE_SMOOTHER_MODE,
"--target-case",
"poly_runpath_file",
"--realizations",
"1,2,4,8,16,32,64",
"poly_example/poly.ert",
],
)

run_cli(parsed)

assert os.path.isfile("RUNPATH_WORKFLOW_0.OK")
assert os.path.isfile("RUNPATH_WORKFLOW_1.OK")


@pytest.mark.scheduler
@pytest.mark.integration_test
def test_ensemble_evaluator(tmpdir, source_root, try_queue_and_scheduler, monkeypatch):
Expand Down

0 comments on commit 43ac2e7

Please sign in to comment.