Skip to content

Commit

Permalink
Revise regex pattern of tests, replacing 'R2SCAN' with 'r2SCAN', acco…
Browse files Browse the repository at this point in the history
…rding to the updated mixing scheme class, for omitted ones
  • Loading branch information
peikai committed Jan 20, 2025
1 parent 0a47653 commit 90910a5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/entries/test_mixing_scheme.py
Original file line number Diff line number Diff line change
Expand Up @@ -1906,7 +1906,7 @@ def test_compat_args(self, ms_complete):
):
compat.get_adjustments(entry, state_data)
else:
with pytest.raises(CompatibilityError, match="there is a matching R2SCAN"):
with pytest.raises(CompatibilityError, match="there is a matching r2SCAN"):
assert not compat.get_adjustments(entry, state_data)

for entry in ms_complete.scan_entries:
Expand Down Expand Up @@ -1952,7 +1952,7 @@ def test_multiple_matching_structures(self, mixing_scheme_no_compat, ms_complete
):
mixing_scheme_no_compat.get_adjustments(entry, ms_complete_duplicate_structs.state_data)
else:
with pytest.raises(CompatibilityError, match="there is a matching R2SCAN"):
with pytest.raises(CompatibilityError, match="there is a matching r2SCAN"):
mixing_scheme_no_compat.get_adjustments(entry, ms_complete_duplicate_structs.state_data)

# process_entries should discard all GGA entries and return all R2SCAN
Expand Down Expand Up @@ -1996,7 +1996,7 @@ def test_alternate_structure_matcher(self, ms_complete):
):
compat.get_adjustments(entry, ms_complete.state_data)
else:
with pytest.raises(CompatibilityError, match="there is a matching R2SCAN"):
with pytest.raises(CompatibilityError, match="there is a matching r2SCAN"):
compat.get_adjustments(entry, ms_complete.state_data)

# process_entries should discard all GGA entries except gga-6 and return all r2SCAN
Expand Down Expand Up @@ -2065,7 +2065,7 @@ def test_state_complete_entries(self, mixing_scheme_no_compat, ms_complete):
):
mixing_scheme_no_compat.get_adjustments(entry, ms_complete.state_data)
else:
with pytest.raises(CompatibilityError, match="there is a matching R2SCAN"):
with pytest.raises(CompatibilityError, match="there is a matching r2SCAN"):
mixing_scheme_no_compat.get_adjustments(entry, ms_complete.state_data)

# process_entries should discard all GGA entries and return all R2SCAN
Expand Down Expand Up @@ -2197,7 +2197,7 @@ def test_state_gga_2_scan_same(self, mixing_scheme_no_compat, ms_gga_2_scan_same
):
mixing_scheme_no_compat.get_adjustments(entry, ms_gga_2_scan_same.state_data)
elif entry.entry_id == "gga-6":
with pytest.raises(CompatibilityError, match="there is a matching R2SCAN"):
with pytest.raises(CompatibilityError, match="there is a matching r2SCAN"):
mixing_scheme_no_compat.get_adjustments(entry, ms_gga_2_scan_same.state_data)
else:
assert mixing_scheme_no_compat.get_adjustments(entry, ms_gga_2_scan_same.state_data) == []
Expand Down

0 comments on commit 90910a5

Please sign in to comment.