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 | 704 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["* 1 passed in *"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 707 | test_log_file_ini | def | function | def test_log_file_ini(pytester: Pytester) -> None:
log_file = str(pytester.path.joinpath("pytest.log"))
pytester.makeini(
"""
[pytest]
log_file={}
log_file_level=WARNING
""".format(
log_file
)
)
pytester.makepyfile(
"""
import ... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 708 | 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 | 710 | makeini | ref | function | pytester.makeini(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 719 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 732 | runpytest | ref | function | result = pytester.runpytest("-s")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 735 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["test_log_file_ini.py PASSED"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 739 | 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 | 746 | test_log_file_ini_level | def | function | def test_log_file_ini_level(pytester: Pytester) -> None:
log_file = str(pytester.path.joinpath("pytest.log"))
pytester.makeini(
"""
[pytest]
log_file={}
log_file_level = INFO
""".format(
log_file
)
)
pytester.makepyfile(
"""
im... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 747 | 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 | 749 | makeini | ref | function | pytester.makeini(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 758 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 771 | runpytest | ref | function | result = pytester.runpytest("-s")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 774 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["test_log_file_ini_level.py PASSED"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 778 | 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 | 785 | test_log_file_unicode | def | function | def test_log_file_unicode(pytester: Pytester) -> None:
log_file = str(pytester.path.joinpath("pytest.log"))
pytester.makeini(
"""
[pytest]
log_file={}
log_file_level = INFO
""".format(
log_file
)
)
pytester.makepyfile(
"""\
imp... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 786 | 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 | 788 | makeini | ref | function | pytester.makeini(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 797 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 808 | runpytest | ref | function | result = pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 812 | 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 | 820 | parametrize | ref | function | @pytest.mark.parametrize("has_capture_manager", [True, False])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 821 | test_live_logging_suspends_capture | def | function | def test_live_logging_suspends_capture(
has_capture_manager: bool, request: FixtureRequest
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 837 | MockCaptureManager | def | class | global_and_fixture_disabled |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 841 | global_and_fixture_disabled | def | function | def global_and_fixture_disabled(self):
self.calls.append("enter disabled")
yield
self.calls.append("exit disabled")
class DummyTerminal(io.StringIO):
def section(self, *args, **kwargs):
pass
out_file = cast(TerminalReporter, DummyTerminal())
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 846 | DummyTerminal | def | class | section |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 847 | section | def | function | def section(self, *args, **kwargs):
pass
out_file = cast(TerminalReporter, DummyTerminal())
capture_manager = (
cast(CaptureManager, MockCaptureManager()) if has_capture_manager else None
)
handler = _LiveLoggingStreamHandler(out_file, capture_manager)
handler.set_when("... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 850 | DummyTerminal | ref | function | out_file = cast(TerminalReporter, DummyTerminal())
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 852 | MockCaptureManager | ref | function | cast(CaptureManager, MockCaptureManager()) if has_capture_manager else None
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 854 | _LiveLoggingStreamHandler | ref | function | handler = _LiveLoggingStreamHandler(out_file, capture_manager)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 855 | set_when | ref | function | handler.set_when("call")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 857 | getLogger | ref | function | logger = logging.getLogger(__name__ + ".test_live_logging_suspends_capture")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 858 | addHandler | ref | function | logger.addHandler(handler)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 859 | addfinalizer | ref | function | request.addfinalizer(partial(logger.removeHandler, handler))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 861 | critical | ref | function | logger.critical("some message")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 866 | getvalue | ref | function | assert cast(io.StringIO, out_file).getvalue() == "\nsome message\n"
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 869 | test_collection_live_logging | def | function | def test_collection_live_logging(pytester: Pytester) -> None:
pytester.makepyfile(
"""
import logging
logging.getLogger().info("Normal message")
"""
)
result = pytester.runpytest("--log-cli-level=INFO")
result.stdout.fnmatch_lines(
["*--- live log collection ---*", ... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 870 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 878 | runpytest | ref | function | result = pytester.runpytest("--log-cli-level=INFO")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 879 | 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 | 884 | parametrize | ref | function | @pytest.mark.parametrize("verbose", ["", "-q", "-qq"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 885 | test_collection_collect_only_live_logging | def | function | def test_collection_collect_only_live_logging(pytester: Pytester, verbose: str) -> None:
pytester.makepyfile(
"""
def test_simple():
pass
"""
)
result = pytester.runpytest("--collect-only", "--log-cli-level=INFO", verbose)
expected_lines = []
if not verbose:
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 886 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 893 | runpytest | ref | function | result = pytester.runpytest("--collect-only", "--log-cli-level=INFO", verbose)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 906 | no_fnmatch_line | ref | function | result.stdout.no_fnmatch_line("*collected 1 item**")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 914 | no_fnmatch_line | ref | function | result.stdout.no_fnmatch_line("*collected 1 item**")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 917 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(expected_lines)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 920 | test_collection_logging_to_file | def | function | def test_collection_logging_to_file(pytester: Pytester) -> None:
log_file = str(pytester.path.joinpath("pytest.log"))
pytester.makeini(
"""
[pytest]
log_file={}
log_file_level = INFO
""".format(
log_file
)
)
pytester.makepyfile(
"""
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 921 | 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 | 923 | makeini | ref | function | pytester.makeini(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 933 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 945 | runpytest | ref | function | result = pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 947 | no_fnmatch_line | ref | function | result.stdout.no_fnmatch_line("*--- live log collection ---*")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 950 | 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 | 958 | test_log_in_hooks | def | function | def test_log_in_hooks(pytester: Pytester) -> None:
log_file = str(pytester.path.joinpath("pytest.log"))
pytester.makeini(
"""
[pytest]
log_file={}
log_file_level = INFO
log_cli=true
""".format(
log_file
)
)
pytester.makeconftest(
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 959 | 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 | 961 | makeini | ref | function | pytester.makeini(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 971 | makeconftest | ref | function | pytester.makeconftest(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 985 | runpytest | ref | function | result = pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 986 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*sessionstart*", "*runtestloop*", "*sessionfinish*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 994 | test_log_in_runtest_logreport | def | function | def test_log_in_runtest_logreport(pytester: Pytester) -> None:
log_file = str(pytester.path.joinpath("pytest.log"))
pytester.makeini(
"""
[pytest]
log_file={}
log_file_level = INFO
log_cli=true
""".format(
log_file
)
)
pytester.makecon... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 995 | 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 | 997 | makeini | ref | function | pytester.makeini(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 1,007 | makeconftest | ref | function | pytester.makeconftest(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 1,016 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 1,022 | runpytest | ref | function | pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 1,028 | test_log_set_path | def | function | def test_log_set_path(pytester: Pytester) -> None:
report_dir_base = str(pytester.path)
pytester.makeini(
"""
[pytest]
log_file_level = DEBUG
log_cli=true
"""
)
pytester.makeconftest(
"""
import os
import pytest
@pytest... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 1,031 | makeini | ref | function | pytester.makeini(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 1,038 | makeconftest | ref | function | pytester.makeconftest(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 1,053 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 1,066 | runpytest | ref | function | pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 1,076 | test_colored_captured_log | def | function | def test_colored_captured_log(pytester: Pytester) -> None:
"""Test that the level names of captured log messages of a failing test
are colored."""
pytester.makepyfile(
"""
import logging
logger = logging.getLogger(__name__)
def test_foo():
logger.info('text goin... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 1,079 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 1,090 | runpytest | ref | function | result = pytester.runpytest("--log-level=INFO", "--color=yes")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 1,092 | 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 | 1,100 | test_colored_ansi_esc_caplogtext | def | function | def test_colored_ansi_esc_caplogtext(pytester: Pytester) -> None:
"""Make sure that caplog.text does not contain ANSI escape sequences."""
pytester.makepyfile(
"""
import logging
logger = logging.getLogger(__name__)
def test_foo(caplog):
logger.info('text going to l... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 1,102 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 1,113 | runpytest | ref | function | result = pytester.runpytest("--log-level=INFO", "--color=yes")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 1,117 | test_logging_emit_error | def | function | def test_logging_emit_error(pytester: Pytester) -> None:
"""An exception raised during emit() should fail the test.
The default behavior of logging is to print "Logging error"
to stderr with the call stack and some extra details.
pytest overrides this behavior to propagate the exception.
"""
p... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 1,125 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 1,133 | runpytest | ref | function | result = pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 1,134 | assert_outcomes | ref | function | result.assert_outcomes(failed=1)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 1,135 | 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 | 1,143 | test_logging_emit_error_supressed | def | function | def test_logging_emit_error_supressed(pytester: Pytester) -> None:
"""If logging is configured to silently ignore errors, pytest
doesn't propagate errors either."""
pytester.makepyfile(
"""
import logging
def test_bad_log(monkeypatch):
monkeypatch.setattr(logging, 'raise... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 1,146 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 1,155 | runpytest | ref | function | result = pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 1,156 | assert_outcomes | ref | function | result.assert_outcomes(passed=1)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 1,159 | test_log_file_cli_subdirectories_are_successfully_created | def | function | def test_log_file_cli_subdirectories_are_successfully_created(
pytester: Pytester,
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 1,162 | makepyfile | ref | function | path = pytester.makepyfile(""" def test_logger(): pass """)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 1,163 | dirname | ref | function | expected = os.path.join(os.path.dirname(str(path)), "foo", "bar")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/logging/test_reporting.py | testing/logging/test_reporting.py | 1,164 | runpytest | ref | function | result = pytester.runpytest("--log-file=foo/bar/logf.log")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/plugins_integration/bdd_wallet.py | testing/plugins_integration/bdd_wallet.py | 8 | scenario | ref | function | @scenario("bdd_wallet.feature", "Buy fruits")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/plugins_integration/bdd_wallet.py | testing/plugins_integration/bdd_wallet.py | 9 | test_publish | def | function | def test_publish():
pass
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/plugins_integration/bdd_wallet.py | testing/plugins_integration/bdd_wallet.py | 14 | wallet | def | function | def wallet():
class Wallet:
amount = 0
return Wallet()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/plugins_integration/bdd_wallet.py | testing/plugins_integration/bdd_wallet.py | 15 | Wallet | def | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/plugins_integration/bdd_wallet.py | testing/plugins_integration/bdd_wallet.py | 18 | Wallet | ref | function | return Wallet()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/plugins_integration/bdd_wallet.py | testing/plugins_integration/bdd_wallet.py | 21 | given | ref | function | @given("A wallet with 50")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/plugins_integration/bdd_wallet.py | testing/plugins_integration/bdd_wallet.py | 22 | fill_wallet | def | function | def fill_wallet(wallet):
wallet.amount = 50
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/plugins_integration/bdd_wallet.py | testing/plugins_integration/bdd_wallet.py | 26 | when | ref | function | @when("I buy some apples for 1")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/plugins_integration/bdd_wallet.py | testing/plugins_integration/bdd_wallet.py | 27 | buy_apples | def | function | def buy_apples(wallet):
wallet.amount -= 1
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.