Skip to content

Commit

Permalink
lint test
Browse files Browse the repository at this point in the history
  • Loading branch information
BrentBlanckaert committed Feb 19, 2025
1 parent 1d3aebd commit 2cb31f5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/test_oracles_builtin.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ def test_file_oracle_full_wrong(
assert result.readable_expected == "expected\nexpected"
assert result.readable_actual == "actual\nactual"


def test_file_oracle_full_correct(
tmp_path: Path, pytestconfig: pytest.Config, mocker: MockerFixture
):
Expand Down Expand Up @@ -191,7 +192,12 @@ def test_file_oracle_full_correct_with_mixed_content(
s = mocker.spy(tested.oracles.text, name="_text_comparison") # type: ignore[reportAttributeAccessIssue]
mock_files = [
mocker.mock_open(read_data=content).return_value
for content in ["expected\nexpected", "expected\nexpected", "expected\nexpected", "expected\nexpected"]
for content in [
"expected\nexpected",
"expected\nexpected",
"expected\nexpected",
"expected\nexpected",
]
]
mock_opener = mocker.mock_open()
mock_opener.side_effect = mock_files
Expand Down

0 comments on commit 2cb31f5

Please sign in to comment.