We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b3a051c + 2547178 commit 5842895Copy full SHA for 5842895
tests/test_pytest_mock.py
@@ -809,7 +809,7 @@ def test_foo(mocker):
809
"""
810
)
811
result = testdir.runpytest()
812
- result.stdout.fnmatch_lines("* 1 passed *")
+ result.assert_outcomes(passed=1)
813
814
kwargs = {"legacy": True}
815
assert compileall.compile_file(str(py_fn), **kwargs)
@@ -819,7 +819,7 @@ def test_foo(mocker):
819
820
py_fn.remove()
821
822
823
824
825
def test_used_with_class_scope(testdir):
0 commit comments