Skip to content

Commit e9a67e6

Browse files
committed
Adjust test involving FixtureLookupErrorRepr
I added a starting 'E' to the expected error messages. The tests were still passing after the previous patch but I think it's better to have stricter tests.
1 parent 6799a47 commit e9a67e6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

testing/acceptance_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ def test_foo(invalid_fixture):
376376
res = testdir.runpytest(p)
377377
res.stdout.fnmatch_lines([
378378
"*source code not available*",
379-
"*fixture 'invalid_fixture' not found",
379+
"E*fixture 'invalid_fixture' not found",
380380
])
381381

382382
def test_plugins_given_as_strings(self, tmpdir, monkeypatch):

testing/test_capture.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,9 +416,9 @@ def test_two(capfd, capsys):
416416
result = testdir.runpytest(p)
417417
result.stdout.fnmatch_lines([
418418
"*ERROR*setup*test_one*",
419-
"*capsys*capfd*same*time*",
419+
"E*capsys*capfd*same*time*",
420420
"*ERROR*setup*test_two*",
421-
"*capsys*capfd*same*time*",
421+
"E*capsys*capfd*same*time*",
422422
"*2 error*"])
423423

424424
@pytest.mark.parametrize("method", ["sys", "fd"])

0 commit comments

Comments
 (0)