Add test coverage and authors name

This commit is contained in:
Kenny Y 2023-05-27 20:37:45 -04:00
parent 14d1d950cd
commit ca3a6675bc
No known key found for this signature in database
GPG Key ID: 6048F488EF01A7F1
2 changed files with 13 additions and 0 deletions

View File

@ -197,6 +197,7 @@ Justice Ndou
Justyna Janczyszyn Justyna Janczyszyn
Kale Kundert Kale Kundert
Kamran Ahmad Kamran Ahmad
Kenny Y
Karl O. Pinc Karl O. Pinc
Karthikeyan Singaravelan Karthikeyan Singaravelan
Katarzyna Jachim Katarzyna Jachim

View File

@ -777,6 +777,18 @@ class TestStackLevel:
) )
def test_warning_on_testpaths_not_found(pytester: Pytester) -> None:
# Check for warning when testpaths set, but not found by glob
pytester.makeini(
"""
[pytest]
testpaths = absent
"""
)
result = pytester.runpytest()
result.stdout.fnmatch_lines(["*ConfigWarning: testpaths defined*", "*1 warning*"])
def test_resource_warning(pytester: Pytester, monkeypatch: pytest.MonkeyPatch) -> None: def test_resource_warning(pytester: Pytester, monkeypatch: pytest.MonkeyPatch) -> None:
# Some platforms (notably PyPy) don't have tracemalloc. # Some platforms (notably PyPy) don't have tracemalloc.
# We choose to explicitly not skip this in case tracemalloc is not # We choose to explicitly not skip this in case tracemalloc is not