Skip to content

Commit

Permalink
updating test match strings
Browse files Browse the repository at this point in the history
  • Loading branch information
atravitz committed Jan 29, 2025
1 parent 8af54d2 commit f6c9ef8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion openfecli/commands/gather.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def _generate_bad_legs_error_message(bad_legs:list[tuple[set[str], tuple[str]]])
elif maybe_rbfe and maybe_rhfe:
msg += (
f"{ligpair}: \n"
"\tUnable to determine whether edge belongs to an RBFE or an RHFE calculation.\n"
"\tUnable to determine whether this edge belongs to an RBFE or an RHFE calculation.\n"
f"\tRuns labelled {leg_types} were found for this edge,"
f"this edge is missing one of: {(expected_rhfe_types | expected_rbfe_types) - leg_types}.\n"
)
Expand Down
6 changes: 3 additions & 3 deletions openfecli/tests/commands/test_gather.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,9 @@ def test_gather(request, data_fixture, report):
@pytest.mark.parametrize('include', ['complex', 'solvent', 'vacuum'])
def test_generate_bad_legs_error_message(include):
expected = {
'complex': ("appears to be an RBFE", "missing {'solvent'}"),
'vacuum': ("appears to be an RHFE", "missing {'solvent'}"),
'solvent': ("whether this is an RBFE or an RHFE",
'complex': ("Assuming this is an RBFE", "missing {'solvent'}"),
'vacuum': ("Assuming this is an RHFE", "missing {'solvent'}"),
'solvent': ("whether this edge belongs to an RBFE or an RHFE",
"'complex'", "'solvent'"),
}[include]
set_vals = {include}
Expand Down

0 comments on commit f6c9ef8

Please sign in to comment.