fname stringlengths 63 176 | rel_fname stringclasses 706
values | line int64 -1 4.5k | name stringlengths 1 81 | kind stringclasses 2
values | category stringclasses 2
values | info stringlengths 0 77.9k ⌀ |
|---|---|---|---|---|---|---|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 29 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*- Captured *log call -*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 32 | test_messages_logged | def | function | def test_messages_logged(pytester: Pytester) -> None:
pytester.makepyfile(
"""
import sys
import logging
logger = logging.getLogger(__name__)
def test_foo():
sys.stdout.write('text going to stdout')
sys.stderr.write('text going to stderr')
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 33 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 47 | runpytest | ref | function | result = pytester.runpytest("--log-level=INFO")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 49 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*- Captured *log call -*", "*text going to logger*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 50 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*- Captured stdout call -*", "text going to stdout"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 51 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*- Captured stderr call -*", "text going to stderr"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 54 | test_root_logger_affected | def | function | def test_root_logger_affected(pytester: Pytester) -> None:
pytester.makepyfile(
"""
import logging
logger = logging.getLogger()
def test_foo():
logger.info('info text ' + 'going to logger')
logger.warning('warning text ' + 'going to logger')
logge... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 55 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 68 | joinpath | ref | function | log_file = str(pytester.path.joinpath("pytest.log"))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 69 | runpytest | ref | function | result = pytester.runpytest("--log-level=ERROR", "--log-file=pytest.log")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 74 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*error text going to logger*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 82 | isfile | ref | function | assert os.path.isfile(log_file)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 90 | test_log_cli_level_log_level_interaction | def | function | def test_log_cli_level_log_level_interaction(pytester: Pytester) -> None:
pytester.makepyfile(
"""
import logging
logger = logging.getLogger()
def test_foo():
logger.debug('debug text ' + 'going to logger')
logger.info('info text ' + 'going to logger')
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 91 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 105 | runpytest | ref | function | result = pytester.runpytest("--log-cli-level=INFO", "--log-level=ERROR")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 108 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 117 | no_re_match_line | ref | function | result.stdout.no_re_match_line("DEBUG")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 120 | test_setup_logging | def | function | def test_setup_logging(pytester: Pytester) -> None:
pytester.makepyfile(
"""
import logging
logger = logging.getLogger(__name__)
def setup_function(function):
logger.info('text going to logger from setup')
def test_foo():
logger.info('text going to ... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 121 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 135 | runpytest | ref | function | result = pytester.runpytest("--log-level=INFO")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 137 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 147 | test_teardown_logging | def | function | def test_teardown_logging(pytester: Pytester) -> None:
pytester.makepyfile(
"""
import logging
logger = logging.getLogger(__name__)
def test_foo():
logger.info('text going to logger from call')
def teardown_function(function):
logger.info('text goin... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 148 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 162 | runpytest | ref | function | result = pytester.runpytest("--log-level=INFO")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 164 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 174 | parametrize | ref | function | @pytest.mark.parametrize("enabled", [True, False])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 175 | test_log_cli_enabled_disabled | def | function | def test_log_cli_enabled_disabled(pytester: Pytester, enabled: bool) -> None:
msg = "critical message logged by test"
pytester.makepyfile(
"""
import logging
def test_log_cli():
logging.critical("{}")
""".format(
msg
)
)
if enabled:
pyt... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 177 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 187 | makeini | ref | function | pytester.makeini(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 193 | runpytest | ref | function | result = pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 195 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 207 | test_log_cli_default_level | def | function | def test_log_cli_default_level(pytester: Pytester) -> None:
# Default log file level
pytester.makepyfile(
"""
import pytest
import logging
def test_log_cli(request):
plugin = request.config.pluginmanager.getplugin('logging-plugin')
assert plugin.log_cli_ha... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 209 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 220 | makeini | ref | function | pytester.makeini(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 227 | runpytest | ref | function | result = pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 230 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 236 | no_fnmatch_line | ref | function | result.stdout.no_fnmatch_line("*INFO message won't be shown*")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 241 | test_log_cli_default_level_multiple_tests | def | function | def test_log_cli_default_level_multiple_tests(
pytester: Pytester, request: FixtureRequest
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 246 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 257 | makeini | ref | function | pytester.makeini(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 264 | runpytest | ref | function | result = pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 265 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 278 | test_log_cli_default_level_sections | def | function | def test_log_cli_default_level_sections(
pytester: Pytester, request: FixtureRequest
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 284 | makeconftest | ref | function | pytester.makeconftest(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 297 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 315 | makeini | ref | function | pytester.makeini(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 322 | runpytest | ref | function | result = pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 323 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 354 | test_live_logs_unknown_sections | def | function | def test_live_logs_unknown_sections(
pytester: Pytester, request: FixtureRequest
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 360 | makeconftest | ref | function | pytester.makeconftest(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 376 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 392 | makeini | ref | function | pytester.makeini(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 399 | runpytest | ref | function | result = pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 400 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 418 | test_sections_single_new_line_after_test_outcome | def | function | def test_sections_single_new_line_after_test_outcome(
pytester: Pytester, request: FixtureRequest
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 424 | makeconftest | ref | function | pytester.makeconftest(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 438 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 454 | makeini | ref | function | pytester.makeini(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 461 | runpytest | ref | function | result = pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 462 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 481 | search | ref | function | re.search(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 489 | search | ref | function | re.search(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 498 | test_log_cli_level | def | function | def test_log_cli_level(pytester: Pytester) -> None:
# Default log file level
pytester.makepyfile(
"""
import pytest
import logging
def test_log_cli(request):
plugin = request.config.pluginmanager.getplugin('logging-plugin')
assert plugin.log_cli_handler.le... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 500 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 512 | makeini | ref | function | pytester.makeini(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 519 | runpytest | ref | function | result = pytester.runpytest("-s", "--log-cli-level=INFO")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 522 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 528 | no_fnmatch_line | ref | function | result.stdout.no_fnmatch_line("*This log message won't be shown*")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 533 | runpytest | ref | function | result = pytester.runpytest("-s", "--log-level=INFO")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 536 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 542 | no_fnmatch_line | ref | function | result.stdout.no_fnmatch_line("*This log message won't be shown*")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 548 | test_log_cli_ini_level | def | function | def test_log_cli_ini_level(pytester: Pytester) -> None:
pytester.makeini(
"""
[pytest]
log_cli=true
log_cli_level = INFO
"""
)
pytester.makepyfile(
"""
import pytest
import logging
def test_log_cli(request):
plugin = request... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 549 | makeini | ref | function | pytester.makeini(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 556 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 569 | runpytest | ref | function | result = pytester.runpytest("-s")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 572 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 578 | no_fnmatch_line | ref | function | result.stdout.no_fnmatch_line("*This log message won't be shown*")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 584 | parametrize | ref | function | @pytest.mark.parametrize(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 588 | test_log_cli_auto_enable | def | function | def test_log_cli_auto_enable(pytester: Pytester, cli_args: str) -> None:
"""Check that live logs are enabled if --log-level or --log-cli-level is passed on the CLI.
It should not be auto enabled if the same configs are set on the INI file.
"""
pytester.makepyfile(
"""
import logging
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 592 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 602 | makeini | ref | function | pytester.makeini(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 610 | runpytest | ref | function | result = pytester.runpytest(cli_args)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 613 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 624 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 631 | test_log_file_cli | def | function | def test_log_file_cli(pytester: Pytester) -> None:
# Default log file level
pytester.makepyfile(
"""
import pytest
import logging
def test_log_file(request):
plugin = request.config.pluginmanager.getplugin('logging-plugin')
assert plugin.log_file_handler.l... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 633 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 646 | joinpath | ref | function | log_file = str(pytester.path.joinpath("pytest.log"))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 648 | runpytest | ref | function | result = pytester.runpytest(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 653 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["test_log_file_cli.py PASSED"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 657 | isfile | ref | function | assert os.path.isfile(log_file)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 664 | test_log_file_cli_level | def | function | def test_log_file_cli_level(pytester: Pytester) -> None:
# Default log file level
pytester.makepyfile(
"""
import pytest
import logging
def test_log_file(request):
plugin = request.config.pluginmanager.getplugin('logging-plugin')
assert plugin.log_file_han... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 666 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 679 | joinpath | ref | function | log_file = str(pytester.path.joinpath("pytest.log"))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 681 | runpytest | ref | function | result = pytester.runpytest("-s", f"--log-file={log_file}", "--log-file-level=INFO")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 684 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["test_log_file_cli_level.py PASSED"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 688 | isfile | ref | function | assert os.path.isfile(log_file)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 695 | test_log_level_not_changed_by_default | def | function | def test_log_level_not_changed_by_default(pytester: Pytester) -> None:
pytester.makepyfile(
"""
import logging
def test_log_file():
assert logging.getLogger().level == logging.WARNING
"""
)
result = pytester.runpytest("-s")
result.stdout.fnmatch_lines(["* 1 passed... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 696 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 703 | runpytest | ref | function | result = pytester.runpytest("-s")
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.