Skip to content

Commit

Permalink
squash last rename error
Browse files Browse the repository at this point in the history
  • Loading branch information
tjlane committed Oct 25, 2024
1 parent 72567b6 commit 43fd69b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/unit/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,17 @@ def test_infer_mtz_column() -> None:
to_search = ["FOO", "BAR", "BAZ"]
assert io._infer_mtz_column(to_search, ["FOO"]) == "FOO"
assert io._infer_mtz_column(to_search, ["BAR"]) == "BAR"
with pytest.raises(io.AmbiguousMtzcolumnError):
with pytest.raises(io.AmbiguousMtzColumnError):
_ = io._infer_mtz_column(to_search, [])
with pytest.raises(io.AmbiguousMtzcolumnError):
with pytest.raises(io.AmbiguousMtzColumnError):
_ = io._infer_mtz_column(to_search, ["FOO", "BAR"])


def validate_find_column_result(
function: FIND_column_FUNC_TYPE, columns: list[str], expected_result: str
) -> None:
if expected_result == "raise":
with pytest.raises(io.AmbiguousMtzcolumnError):
with pytest.raises(io.AmbiguousMtzColumnError):
_ = function(columns)
else:
assert function(columns) == expected_result
Expand Down

0 comments on commit 43fd69b

Please sign in to comment.