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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_stepwise.py
testing/test_stepwise.py
38
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_stepwise.py
testing/test_stepwise.py
46
makeini
ref
function
pytester.makeini(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_stepwise.py
testing/test_stepwise.py
57
error_pytester
def
function
def error_pytester(pytester: Pytester) -> Pytester: pytester.makepyfile( test_a="""
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_stepwise.py
testing/test_stepwise.py
58
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_stepwise.py
testing/test_stepwise.py
72
broken_pytester
def
function
def broken_pytester(pytester: Pytester) -> Pytester: pytester.makepyfile( working_testfile="def test_proper(): assert 1", broken_testfile="foobar" ) return pytester
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_stepwise.py
testing/test_stepwise.py
73
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_stepwise.py
testing/test_stepwise.py
79
_strip_resource_warnings
def
function
def _strip_resource_warnings(lines): # Strip unreliable ResourceWarnings, so no-output assertions on stderr can work. # (https://github.com/pytest-dev/pytest/issues/5088) return [ x for x in lines if not x.startswith(("Exception ignored in:", "ResourceWarning")) ]
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_stepwise.py
testing/test_stepwise.py
89
test_run_without_stepwise
def
function
def test_run_without_stepwise(stepwise_pytester: Pytester) -> None: result = stepwise_pytester.runpytest("-v", "--strict-markers", "--fail") result.stdout.fnmatch_lines(["*test_success_before_fail PASSED*"]) result.stdout.fnmatch_lines(["*test_fail_on_flag FAILED*"]) result.stdout.fnmatch_lines(["*test_...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_stepwise.py
testing/test_stepwise.py
90
runpytest
ref
function
result = stepwise_pytester.runpytest("-v", "--strict-markers", "--fail")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_stepwise.py
testing/test_stepwise.py
91
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*test_success_before_fail PASSED*"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_stepwise.py
testing/test_stepwise.py
92
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*test_fail_on_flag FAILED*"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_stepwise.py
testing/test_stepwise.py
93
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*test_success_after_fail PASSED*"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_stepwise.py
testing/test_stepwise.py
96
test_stepwise_output_summary
def
function
def test_stepwise_output_summary(pytester: Pytester) -> None: pytester.makepyfile( """ import pytest @pytest.mark.parametrize("expected", [_True, _True, _True, _True, _False]) def test_data(expected): assert expected """ ) result = pytester.runpytest("-v",...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_stepwise.py
testing/test_stepwise.py
97
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_stepwise.py
testing/test_stepwise.py
105
runpytest
ref
function
result = pytester.runpytest("-v", "--stepwise")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_stepwise.py
testing/test_stepwise.py
106
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["stepwise: no previously failed tests, not skipping."])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_stepwise.py
testing/test_stepwise.py
107
runpytest
ref
function
result = pytester.runpytest("-v", "--stepwise")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_stepwise.py
testing/test_stepwise.py
108
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_stepwise.py
testing/test_stepwise.py
113
test_fail_and_continue_with_stepwise
def
function
def test_fail_and_continue_with_stepwise(stepwise_pytester: Pytester) -> None: # Run the tests with a failing second test. result = stepwise_pytester.runpytest( "-v", "--strict-markers", "--stepwise", "--fail" ) assert _strip_resource_warnings(result.stderr.lines) == [] stdout = result.stdo...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_stepwise.py
testing/test_stepwise.py
115
runpytest
ref
function
result = stepwise_pytester.runpytest(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_stepwise.py
testing/test_stepwise.py
118
_strip_resource_warnings
ref
function
assert _strip_resource_warnings(result.stderr.lines) == []
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_stepwise.py
testing/test_stepwise.py
127
runpytest
ref
function
result = stepwise_pytester.runpytest("-v", "--strict-markers", "--stepwise")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_stepwise.py
testing/test_stepwise.py
128
_strip_resource_warnings
ref
function
assert _strip_resource_warnings(result.stderr.lines) == []
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_stepwise.py
testing/test_stepwise.py
137
parametrize
ref
function
@pytest.mark.parametrize("stepwise_skip", ["--stepwise-skip", "--sw-skip"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_stepwise.py
testing/test_stepwise.py
138
test_run_with_skip_option
def
function
def test_run_with_skip_option(stepwise_pytester: Pytester, stepwise_skip: str) -> None: result = stepwise_pytester.runpytest( "-v", "--strict-markers", "--stepwise", stepwise_skip, "--fail", "--fail-last", ) assert _strip_resource_warnings(result.stderr.lines)...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_stepwise.py
testing/test_stepwise.py
139
runpytest
ref
function
result = stepwise_pytester.runpytest(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_stepwise.py
testing/test_stepwise.py
147
_strip_resource_warnings
ref
function
assert _strip_resource_warnings(result.stderr.lines) == []
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_stepwise.py
testing/test_stepwise.py
157
test_fail_on_errors
def
function
def test_fail_on_errors(error_pytester: Pytester) -> None: result = error_pytester.runpytest("-v", "--strict-markers", "--stepwise") assert _strip_resource_warnings(result.stderr.lines) == [] stdout = result.stdout.str() assert "test_error ERROR" in stdout assert "test_success_after_fail" not in s...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_stepwise.py
testing/test_stepwise.py
158
runpytest
ref
function
result = error_pytester.runpytest("-v", "--strict-markers", "--stepwise")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_stepwise.py
testing/test_stepwise.py
160
_strip_resource_warnings
ref
function
assert _strip_resource_warnings(result.stderr.lines) == []
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_stepwise.py
testing/test_stepwise.py
167
test_change_testfile
def
function
def test_change_testfile(stepwise_pytester: Pytester) -> None: result = stepwise_pytester.runpytest( "-v", "--strict-markers", "--stepwise", "--fail", "test_a.py" ) assert _strip_resource_warnings(result.stderr.lines) == [] stdout = result.stdout.str() assert "test_fail_on_flag FAILED" in s...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_stepwise.py
testing/test_stepwise.py
168
runpytest
ref
function
result = stepwise_pytester.runpytest(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_stepwise.py
testing/test_stepwise.py
171
_strip_resource_warnings
ref
function
assert _strip_resource_warnings(result.stderr.lines) == []
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_stepwise.py
testing/test_stepwise.py
178
runpytest
ref
function
result = stepwise_pytester.runpytest(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_stepwise.py
testing/test_stepwise.py
181
_strip_resource_warnings
ref
function
assert _strip_resource_warnings(result.stderr.lines) == []
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_stepwise.py
testing/test_stepwise.py
187
parametrize
ref
function
@pytest.mark.parametrize("broken_first", [True, False])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_stepwise.py
testing/test_stepwise.py
188
test_stop_on_collection_errors
def
function
def test_stop_on_collection_errors( broken_pytester: Pytester, broken_first: bool
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_stepwise.py
testing/test_stepwise.py
196
runpytest
ref
function
result = broken_pytester.runpytest("-v", "--strict-markers", "--stepwise", *files)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_stepwise.py
testing/test_stepwise.py
197
fnmatch_lines
ref
function
result.stdout.fnmatch_lines("*error during collection*")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_stepwise.py
testing/test_stepwise.py
200
test_xfail_handling
def
function
def test_xfail_handling(pytester: Pytester, monkeypatch: MonkeyPatch) -> None: """Ensure normal xfail is ignored, and strict xfail interrupts the session in sw mode (#5547) """ monkeypatch.setattr("sys.dont_write_bytecode", _True) contents = """ import pytest def test_a(): pass ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_stepwise.py
testing/test_stepwise.py
217
makepyfile
ref
function
pytester.makepyfile(contents.format(assert_value="0", strict="False"))
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_stepwise.py
testing/test_stepwise.py
218
runpytest
ref
function
result = pytester.runpytest("--sw", "-v")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_stepwise.py
testing/test_stepwise.py
219
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_stepwise.py
testing/test_stepwise.py
229
makepyfile
ref
function
pytester.makepyfile(contents.format(assert_value="1", strict="True"))
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_stepwise.py
testing/test_stepwise.py
230
runpytest
ref
function
result = pytester.runpytest("--sw", "-v")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_stepwise.py
testing/test_stepwise.py
231
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_stepwise.py
testing/test_stepwise.py
240
makepyfile
ref
function
pytester.makepyfile(contents.format(assert_value="0", strict="True"))
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_stepwise.py
testing/test_stepwise.py
241
runpytest
ref
function
result = pytester.runpytest("--sw", "-v")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_stepwise.py
testing/test_stepwise.py
242
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_store.py
testing/test_store.py
5
test_store
def
function
def test_store() -> None: store = Store() key1 = StoreKey[str]() key2 = StoreKey[int]() # Basic functionality - single key. assert key1 not in store store[key1] = "hello" assert key1 in store assert store[key1] == "hello" assert store.get(key1, None) == "hello" store[key1] = "w...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_store.py
testing/test_store.py
6
Store
ref
function
store = Store()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_store.py
testing/test_store.py
25
raises
ref
function
with pytest.raises(KeyError):
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_store.py
testing/test_store.py
27
raises
ref
function
with pytest.raises(KeyError):
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_store.py
testing/test_store.py
34
raises
ref
function
with pytest.raises(KeyError):
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_store.py
testing/test_store.py
36
raises
ref
function
with pytest.raises(KeyError):
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_store.py
testing/test_store.py
48
raises
ref
function
with pytest.raises(AttributeError):
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_store.py
testing/test_store.py
52
Store
ref
function
store2 = Store()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
41
Option
def
class
__init__ args
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
46
args
def
function
def args(self): values = [] values.append("--verbosity=%d" % self.verbosity) return values
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
52
fixture
ref
function
@pytest.fixture(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
53
Option
ref
function
params=[Option(verbosity=0), Option(verbosity=1), Option(verbosity=-1)],
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
53
Option
ref
function
params=[Option(verbosity=0), Option(verbosity=1), Option(verbosity=-1)],
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
53
Option
ref
function
params=[Option(verbosity=0), Option(verbosity=1), Option(verbosity=-1)],
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
56
option
def
function
def option(request): return request.param
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
60
parametrize
ref
function
@pytest.mark.parametrize(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
63
DistInfo
ref
function
([DistInfo(project_name="test", version=1)], ["test-1"]),
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
64
DistInfo
ref
function
([DistInfo(project_name="pytest-test", version=1)], ["test-1"]),
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
67
DistInfo
ref
function
DistInfo(project_name="test", version=1),
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
68
DistInfo
ref
function
DistInfo(project_name="test", version=1),
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
75
test_plugin_nameversion
def
function
def test_plugin_nameversion(input, expected): pluginlist = [(None, x) for x in input] result = _plugin_nameversions(pluginlist) assert result == expected
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
77
_plugin_nameversions
ref
function
result = _plugin_nameversions(pluginlist)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
81
TestTerminal
def
class
test_pass_skip_fail test_internalerror test_writeline test_show_runtest_logstart test_runtest_location_shown_before_test_starts test_report_collect_after_half_a_second test_itemreport_subclasses_show_subclassed_file test_itemreport_directclasses_not_shown_as_subclasses test_keyboard_interrupt test_keyboard_in_sessionst...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
82
test_pass_skip_fail
def
function
def test_pass_skip_fail(self, pytester: Pytester, option) -> None: pytester.makepyfile( """ import pytest def test_ok(): pass def test_skip(): pytest.skip("xx") def test_func(): assert 0 """ ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
83
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
94
runpytest
ref
function
result = pytester.runpytest(*option.args)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
96
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
104
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*test_pass_skip_fail.py .sF*"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
106
fnmatch_lines
ref
function
result.stdout.fnmatch_lines([".sF*"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
107
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
111
test_internalerror
def
function
def test_internalerror(self, pytester: Pytester, linecomp) -> None: modcol = pytester.getmodulecol("def test_one(): pass") rep = TerminalReporter(modcol.config, file=linecomp.stringio) with pytest.raises(ValueError) as excinfo: raise ValueError("hello") rep.pytest_interna...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
112
getmodulecol
ref
function
modcol = pytester.getmodulecol("def test_one(): pass")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
113
TerminalReporter
ref
function
rep = TerminalReporter(modcol.config, file=linecomp.stringio)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
114
raises
ref
function
with pytest.raises(ValueError) as excinfo:
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
116
pytest_internalerror
ref
function
rep.pytest_internalerror(excinfo.getrepr())
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
116
getrepr
ref
function
rep.pytest_internalerror(excinfo.getrepr())
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
117
assert_contains_lines
ref
function
linecomp.assert_contains_lines(["INTERNALERROR> *ValueError*hello*"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
119
test_writeline
def
function
def test_writeline(self, pytester: Pytester, linecomp) -> None: modcol = pytester.getmodulecol("def test_one(): pass") rep = TerminalReporter(modcol.config, file=linecomp.stringio) rep.write_fspath_result(modcol.nodeid, ".") rep.write_line("hello world") lines = linecomp.stri...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
120
getmodulecol
ref
function
modcol = pytester.getmodulecol("def test_one(): pass")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
121
TerminalReporter
ref
function
rep = TerminalReporter(modcol.config, file=linecomp.stringio)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
122
write_fspath_result
ref
function
rep.write_fspath_result(modcol.nodeid, ".")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
123
write_line
ref
function
rep.write_line("hello world")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
129
test_show_runtest_logstart
def
function
def test_show_runtest_logstart(self, pytester: Pytester, linecomp) -> None: item = pytester.getitem("def test_func(): pass") tr = TerminalReporter(item.config, file=linecomp.stringio) item.config.pluginmanager.register(tr) location = item.reportinfo() tr.config.hook.pytest_ru...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
130
getitem
ref
function
item = pytester.getitem("def test_func(): pass")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
131
TerminalReporter
ref
function
tr = TerminalReporter(item.config, file=linecomp.stringio)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
132
register
ref
function
item.config.pluginmanager.register(tr)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
133
reportinfo
ref
function
location = item.reportinfo()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
134
pytest_runtest_logstart
ref
function
tr.config.hook.pytest_runtest_logstart(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
137
assert_contains_lines
ref
function
linecomp.assert_contains_lines(["*test_show_runtest_logstart.py*"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
139
test_runtest_location_shown_before_test_starts
def
function
def test_runtest_location_shown_before_test_starts( self, pytester: Pytester ) -> None: pytester.makepyfile( """ def test_1(): import time time.sleep(20) """ ) child = pytester.spawn_pytest("") child.expect("...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
142
makepyfile
ref
function
pytester.makepyfile(