Skip to content

Commit

Permalink
Revert "Fixes broken test with shallow git clone"
Browse files Browse the repository at this point in the history
This reverts commit fb5ab4e.
  • Loading branch information
jasonb5 committed Feb 6, 2024
1 parent fb5ab4e commit 24ff828
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions CIME/tests/test_unit_bless_test_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -798,21 +798,13 @@ def test_baseline_root_none(self, get_test_status_files, TestStatus, Case):

assert not success

@mock.patch("CIME.utils.get_current_branch")
@mock.patch("CIME.bless_test_results.bless_namelists")
@mock.patch("CIME.bless_test_results.Case")
@mock.patch("CIME.bless_test_results.TestStatus")
@mock.patch("CIME.bless_test_results.get_test_status_files")
def test_baseline_name_none(
self,
get_test_status_files,
TestStatus,
Case,
bless_namelists,
get_current_branch,
self, get_test_status_files, TestStatus, Case, bless_namelists
):
get_current_branch.return_value = "master"

bless_namelists.return_value = (True, "")

get_test_status_files.return_value = [
Expand All @@ -827,7 +819,6 @@ def test_baseline_name_none(
case = Case.return_value.__enter__.return_value
case.get_value.side_effect = [None, None]

breakpoint()
success = bless_test_results(
None,
"/tmp/baselines",
Expand Down

0 comments on commit 24ff828

Please sign in to comment.