Skip to content

Commit

Permalink
Rename runrms cli invocation
Browse files Browse the repository at this point in the history
This may be temporary or permanent until rms-sys takes precedence.
Renaming this for komodo bleeding so that `runrms` may be tested more
simply from Komodo bleeding.
  • Loading branch information
mferrera committed Apr 9, 2024
1 parent 8e225fa commit a1ddb06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ prtvol2csv = "subscript.prtvol2csv.prtvol2csv:main"
restartthinner = "subscript.restartthinner.restartthinner:main"
ri_wellmod = "subscript.ri_wellmod.ri_wellmod:main"
rmsecl_volumetrics = "subscript.rmsecl_volumetrics.rmsecl_volumetrics:main"
runrms = "subscript.runrms.runrms:main"
runrms_legacy = "subscript.runrms.runrms:main"
sector2fluxnum = "subscript.sector2fluxnum.sector2fluxnum:main"
summaryplot = "subscript.summaryplot.summaryplot:main"
sw_model_utilities = "subscript.sw_model_utilities.sw_model_utilities:main"
Expand Down
6 changes: 3 additions & 3 deletions tests/test_runrms.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def test_do_parse_args(tmp_path):
@pytest.mark.integration
def test_integration():
"""Test that the endpoint is installed."""
assert subprocess.check_output(["runrms", "-h"])
assert subprocess.check_output(["runrms_legacy", "-h"])


def test_scan_rms(tmp_path):
Expand Down Expand Up @@ -189,7 +189,7 @@ def test_parse_setup(tmp_path, mocker):
setupfile = "foo.yml"
mocker.patch("subscript.runrms.runrms.SETUP", setupfile)
runner = rr.RunRMS()
runner.do_parse_args(["runrms", "--debug"])
runner.do_parse_args(["runrms_legacy", "--debug"])
with pytest.raises(FileNotFoundError):
runner.parse_setup()

Expand All @@ -207,7 +207,7 @@ def test_requested_rms_version(tmp_path, mocker):
setupfile = "setup.yml"
mocker.patch("subscript.runrms.runrms.SETUP", setupfile)
runner = rr.RunRMS()
runner.do_parse_args(["runrms", "--debug"])
runner.do_parse_args(["runrms_legacy", "--debug"])

with pytest.raises(KeyError, match="rms"):
Path(setupfile).write_text(yaml.dump({}), encoding="utf8")
Expand Down

0 comments on commit a1ddb06

Please sign in to comment.