Added additional testing to confirm stdout and stderr in result and not log

This commit is contained in:
Itamar Hindi 2023-12-06 18:54:08 -05:00
parent 1009e1f754
commit c49e906cc3
1 changed files with 5 additions and 0 deletions

View File

@ -1665,6 +1665,11 @@ def pytest_report_header(config, start_path):
assert "!stderr!" not in result
assert "!log!" in result
result = pytester.runpytest("--show-capture=stdio", "--tb=short").stdout.str()
assert "!stdout!" in result
assert "!stderr!" in result
assert "!log!" not in result
result = pytester.runpytest("--show-capture=no", "--tb=short").stdout.str()
assert "!stdout!" not in result
assert "!stderr!" not in result