Adjust test to reflect new verbage on warning

This commit is contained in:
Kenny Y 2023-05-28 08:24:33 -04:00
parent 43df7cf914
commit 7aa2a8c60d
No known key found for this signature in database
GPG Key ID: 6048F488EF01A7F1
1 changed files with 3 additions and 1 deletions

View File

@ -786,7 +786,9 @@ def test_warning_on_testpaths_not_found(pytester: Pytester) -> None:
""" """
) )
result = pytester.runpytest() result = pytester.runpytest()
result.stdout.fnmatch_lines(["*ConfigWarning: testpaths defined*", "*1 warning*"]) result.stdout.fnmatch_lines(
["*ConfigWarning: No files were found in testpaths*", "*1 warning*"]
)
def test_resource_warning(pytester: Pytester, monkeypatch: pytest.MonkeyPatch) -> None: def test_resource_warning(pytester: Pytester, monkeypatch: pytest.MonkeyPatch) -> None: