Skip to content

Commit

Permalink
Remove duplicate realization_memory tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-eq committed Dec 17, 2024
1 parent ccf9d6d commit 371c568
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions tests/ert/unit_tests/scheduler/test_openpbs_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,6 @@ def parse_resource_string(qsub_args: str) -> dict[str, str]:
return resources


@pytest.mark.usefixtures("capturing_qsub")
async def test_realization_memory():
driver = OpenPBSDriver()
await driver.submit(0, "sleep", realization_memory=1024**2)
assert " -l mem=1mb" in Path("captured_qsub_args").read_text(encoding="utf-8")


@pytest.mark.usefixtures("capturing_qsub")
async def test_no_default_realization_memory():
driver = OpenPBSDriver()
Expand Down Expand Up @@ -293,16 +286,6 @@ async def test_full_resource_string(realization_memory, num_cpu, cluster_label):
), "Unknown or missing resources in resource string"


@pytest.mark.usefixtures("capturing_qsub")
async def test_submit_with_realization_memory():
driver = OpenPBSDriver()
await driver.submit(0, "sleep", realization_memory=1024**2)
resources = parse_resource_string(
Path("captured_qsub_args").read_text(encoding="utf-8")
)
assert resources.get("mem", "") == "1mb"


@pytest.mark.parametrize(
("exit_code, error_msg"),
[
Expand Down

0 comments on commit 371c568

Please sign in to comment.