Skip to content

Commit

Permalink
Fixes append_testlog import
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonb5 committed Aug 22, 2024
1 parent 6e0a12c commit d1d02fc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions CIME/tests/test_unit_system_tests_mvk.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def evv_test_config(case, config):

assert lines == ["var2 = value2\n"]

@mock.patch("CIME.SystemTests.mvk.status.append_testlog")
@mock.patch("CIME.SystemTests.mvk.append_testlog")
@mock.patch("CIME.SystemTests.mvk.Machines")
def test_update_testlog(self, machines, append_testlog):
with contextlib.ExitStack() as stack:
Expand Down Expand Up @@ -246,7 +246,7 @@ def test_update_testlog(self, machines, append_testlog):
)

@mock.patch("CIME.SystemTests.mvk.utils.get_urlroot")
@mock.patch("CIME.SystemTests.mvk.status.append_testlog")
@mock.patch("CIME.SystemTests.mvk.append_testlog")
@mock.patch("CIME.SystemTests.mvk.Machines")
def test_update_testlog_urlroot_None(self, machines, append_testlog, get_urlroot):
with contextlib.ExitStack() as stack:
Expand Down Expand Up @@ -287,7 +287,7 @@ def test_update_testlog_urlroot_None(self, machines, append_testlog, get_urlroot
)

@mock.patch("CIME.SystemTests.mvk.utils.get_htmlroot")
@mock.patch("CIME.SystemTests.mvk.status.append_testlog")
@mock.patch("CIME.SystemTests.mvk.append_testlog")
@mock.patch("CIME.SystemTests.mvk.Machines")
def test_update_testlog_htmlroot(self, machines, append_testlog, get_htmlroot):
with contextlib.ExitStack() as stack:
Expand Down Expand Up @@ -462,7 +462,7 @@ def test_build_phase(self, build_indv, case_setup):
case_setup.assert_any_call(case, test_mode=False, reset=True)

@mock.patch("CIME.SystemTests.mvk.SystemTestsCommon._generate_baseline")
@mock.patch("CIME.SystemTests.mvk.status.append_testlog")
@mock.patch("CIME.SystemTests.mvk.append_testlog")
@mock.patch("CIME.SystemTests.mvk.evv")
def test__generate_baseline(self, evv, append_testlog, _generate_baseline):
with contextlib.ExitStack() as stack:
Expand Down Expand Up @@ -530,7 +530,7 @@ def test__generate_baseline(self, evv, append_testlog, _generate_baseline):

assert files == ["test1.nc", "test2.nc"]

@mock.patch("CIME.SystemTests.mvk.status.append_testlog")
@mock.patch("CIME.SystemTests.mvk.append_testlog")
@mock.patch("CIME.SystemTests.mvk.evv")
def test__compare_baseline_resubmit(self, evv, append_testlog):
with contextlib.ExitStack() as stack:
Expand Down Expand Up @@ -562,7 +562,7 @@ def test__compare_baseline_resubmit(self, evv, append_testlog):

_test_status.set_status.assert_any_call("BASELINE", "PASS")

@mock.patch("CIME.SystemTests.mvk.status.append_testlog")
@mock.patch("CIME.SystemTests.mvk.append_testlog")
@mock.patch("CIME.SystemTests.mvk.evv")
def test__compare_baseline(self, evv, append_testlog):
with contextlib.ExitStack() as stack:
Expand Down

0 comments on commit d1d02fc

Please sign in to comment.