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/test_reports.py | testing/test_reports.py | 184 | test_collectreport_passed | def | function | def test_collectreport_passed(self, pytester: Pytester) -> None:
"""This test came originally from test_remote.py in xdist (ca03269)."""
reprec = pytester.inline_runsource("def test_func(): pass")
reports = reprec.getreports("pytest_collectreport")
for rep in reports:
d =... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 186 | inline_runsource | ref | function | reprec = pytester.inline_runsource("def test_func(): pass")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 187 | getreports | ref | function | reports = reprec.getreports("pytest_collectreport")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 189 | _to_json | ref | function | d = rep._to_json()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 190 | _from_json | ref | function | newrep = CollectReport._from_json(d)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 195 | test_collectreport_fail | def | function | def test_collectreport_fail(self, pytester: Pytester) -> None:
"""This test came originally from test_remote.py in xdist (ca03269)."""
reprec = pytester.inline_runsource("qwe abc")
reports = reprec.getreports("pytest_collectreport")
assert reports
for rep in reports:
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 197 | inline_runsource | ref | function | reprec = pytester.inline_runsource("qwe abc")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 198 | getreports | ref | function | reports = reprec.getreports("pytest_collectreport")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 201 | _to_json | ref | function | d = rep._to_json()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 202 | _from_json | ref | function | newrep = CollectReport._from_json(d)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 209 | test_extended_report_deserialization | def | function | def test_extended_report_deserialization(self, pytester: Pytester) -> None:
"""This test came originally from test_remote.py in xdist (ca03269)."""
reprec = pytester.inline_runsource("qwe abc")
reports = reprec.getreports("pytest_collectreport")
assert reports
for rep in repo... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 211 | inline_runsource | ref | function | reprec = pytester.inline_runsource("qwe abc")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 212 | getreports | ref | function | reports = reprec.getreports("pytest_collectreport")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 216 | _to_json | ref | function | d = rep._to_json()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 217 | _from_json | ref | function | newrep = CollectReport._from_json(d)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 225 | test_paths_support | def | function | def test_paths_support(self, pytester: Pytester) -> None:
"""Report attributes which are path-like should become strings."""
pytester.makepyfile(
"""
def test_a():
assert _False
"""
)
class MyPathLike:
def __init__(self, pa... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 227 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 234 | MyPathLike | def | class | __init__ __fspath__ |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 238 | __fspath__ | def | function | def __fspath__(self) -> str:
return self.path
reprec = pytester.inline_run()
reports = reprec.getreports("pytest_runtest_logreport")
assert len(reports) == 3
test_a_call = reports[1]
test_a_call.path1 = MyPathLike(str(pytester.path)) # type: ignore[a... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 241 | inline_run | ref | function | reprec = pytester.inline_run()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 242 | getreports | ref | function | reports = reprec.getreports("pytest_runtest_logreport")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 245 | MyPathLike | ref | function | test_a_call.path1 = MyPathLike(str(pytester.path)) # type: ignore[attr-defined]
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 247 | _to_json | ref | function | data = test_a_call._to_json()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 251 | test_deserialization_failure | def | function | def test_deserialization_failure(self, pytester: Pytester) -> None:
"""Check handling of failure during deserialization of report types."""
pytester.makepyfile(
"""
def test_a():
assert _False
"""
)
reprec = pytester.inline_run()
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 253 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 259 | inline_run | ref | function | reprec = pytester.inline_run()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 260 | getreports | ref | function | reports = reprec.getreports("pytest_runtest_logreport")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 263 | _to_json | ref | function | data = test_a_call._to_json()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 268 | raises | ref | function | with pytest.raises(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 271 | _from_json | ref | function | TestReport._from_json(data)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 273 | parametrize | ref | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 274 | test_chained_exceptions | def | function | def test_chained_exceptions(
self, pytester: Pytester, tw_mock, report_class
) -> None:
"""Check serialization/deserialization of report objects containing chained exceptions (#5786)"""
pytester.makepyfile(
"""
def foo():
raise ValueError('value er... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 278 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 294 | inline_run | ref | function | reprec = pytester.inline_run()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 298 | getreports | ref | function | ] = reprec.getreports("pytest_runtest_logreport")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 306 | getreports | ref | function | reports = reprec.getreports("pytest_collectreport")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 310 | check_longrepr | def | function | def check_longrepr(longrepr: ExceptionChainRepr) -> None:
"""Check the attributes of the given longrepr object according to the test file.
We can get away with testing both CollectReport and TestReport with this function because
the longrepr objects are very similar.
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 335 | addsection | ref | function | report.longrepr.addsection("title", "contents", "=")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 336 | check_longrepr | ref | function | check_longrepr(report.longrepr)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 338 | _to_json | ref | function | data = report._to_json()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 339 | _from_json | ref | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 342 | check_longrepr | ref | function | check_longrepr(loaded_report.longrepr)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 347 | toterminal | ref | function | loaded_report.longrepr.toterminal(tw_mock)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 349 | test_chained_exceptions_no_reprcrash | def | function | def test_chained_exceptions_no_reprcrash(self, pytester: Pytester, tw_mock) -> None:
"""Regression test for tracebacks without a reprcrash (#5971)
This happens notably on exceptions raised by multiprocess.pool: the exception transfer
from subprocess to main process creates an artificial exc... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 356 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 369 | syspathinsert | ref | function | pytester.syspathinsert()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 370 | inline_run | ref | function | reprec = pytester.inline_run()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 372 | getreports | ref | function | reports = reprec.getreports("pytest_runtest_logreport")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 374 | check_longrepr | def | function | def check_longrepr(longrepr: object) -> None:
assert isinstance(longrepr, ExceptionChainRepr)
assert len(longrepr.chain) == 2
entry1, entry2 = longrepr.chain
tb1, fileloc1, desc1 = entry1
tb2, fileloc2, desc2 = entry2
assert "RemoteTraceba... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 393 | check_longrepr | ref | function | check_longrepr(report.longrepr)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 395 | _to_json | ref | function | data = report._to_json()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 396 | _from_json | ref | function | loaded_report = TestReport._from_json(data)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 399 | check_longrepr | ref | function | check_longrepr(loaded_report.longrepr)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 404 | toterminal | ref | function | loaded_report.longrepr.toterminal(tw_mock)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 406 | test_report_prevent_ConftestImportFailure_hiding_exception | def | function | def test_report_prevent_ConftestImportFailure_hiding_exception(
self, pytester: Pytester
) -> None:
sub_dir = pytester.path.joinpath("ns")
sub_dir.mkdir()
sub_dir.joinpath("conftest.py").write_text("import unknown")
result = pytester.runpytest_subprocess(".")
res... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 409 | joinpath | ref | function | sub_dir = pytester.path.joinpath("ns")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 410 | mkdir | ref | function | sub_dir.mkdir()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 411 | joinpath | ref | function | sub_dir.joinpath("conftest.py").write_text("import unknown")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 411 | write_text | ref | function | sub_dir.joinpath("conftest.py").write_text("import unknown")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 413 | runpytest_subprocess | ref | function | result = pytester.runpytest_subprocess(".")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 414 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["E *Error: No module named 'unknown'"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 415 | no_fnmatch_line | ref | function | result.stdout.no_fnmatch_line("ERROR - *ConftestImportFailure*")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 418 | TestHooks | def | class | test_test_report test_collect_report test_invalid_report_types |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 421 | test_test_report | def | function | def test_test_report(self, pytester: Pytester, pytestconfig: Config) -> None:
pytester.makepyfile(
"""
def test_a(): assert _False
def test_b(): pass
"""
)
reprec = pytester.inline_run()
reports = reprec.getreports("pytest_runtest_logreport... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 422 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 428 | inline_run | ref | function | reprec = pytester.inline_run()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 429 | getreports | ref | function | reports = reprec.getreports("pytest_runtest_logreport")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 432 | pytest_report_to_serializable | ref | function | data = pytestconfig.hook.pytest_report_to_serializable(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 436 | pytest_report_from_serializable | ref | function | new_rep = pytestconfig.hook.pytest_report_from_serializable(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 443 | test_collect_report | def | function | def test_collect_report(self, pytester: Pytester, pytestconfig: Config) -> None:
pytester.makepyfile(
"""
def test_a(): assert _False
def test_b(): pass
"""
)
reprec = pytester.inline_run()
reports = reprec.getreports("pytest_collectreport"... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 444 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 450 | inline_run | ref | function | reprec = pytester.inline_run()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 451 | getreports | ref | function | reports = reprec.getreports("pytest_collectreport")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 454 | pytest_report_to_serializable | ref | function | data = pytestconfig.hook.pytest_report_to_serializable(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 458 | pytest_report_from_serializable | ref | function | new_rep = pytestconfig.hook.pytest_report_from_serializable(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 465 | parametrize | ref | function | @pytest.mark.parametrize(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 468 | test_invalid_report_types | def | function | def test_invalid_report_types(
self, pytester: Pytester, pytestconfig: Config, hook_name: str
) -> None:
pytester.makepyfile(
"""
def test_a(): pass
"""
)
reprec = pytester.inline_run()
reports = reprec.getreports(hook_name)
ass... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 471 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 476 | inline_run | ref | function | reprec = pytester.inline_run()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 477 | getreports | ref | function | reports = reprec.getreports(hook_name)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 480 | pytest_report_to_serializable | ref | function | data = pytestconfig.hook.pytest_report_to_serializable(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 484 | raises | ref | function | with pytest.raises(AssertionError):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 485 | pytest_report_from_serializable | ref | function | _ = pytestconfig.hook.pytest_report_from_serializable(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_runner.py | testing/test_runner.py | 22 | TestSetupState | def | class | test_setup test_teardown_exact_stack_empty test_setup_fails_and_failure_is_cached test_teardown_multiple_one_fails test_teardown_multiple_fail test_teardown_multiple_scopes_one_fails |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_runner.py | testing/test_runner.py | 23 | test_setup | def | function | def test_setup(self, pytester: Pytester) -> None:
item = pytester.getitem("def test_func(): pass")
ss = item.session._setupstate
values = [1]
ss.setup(item)
ss.addfinalizer(values.pop, item)
assert values
ss.teardown_exact(None)
assert not values
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_runner.py | testing/test_runner.py | 24 | getitem | ref | function | item = pytester.getitem("def test_func(): pass")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_runner.py | testing/test_runner.py | 27 | setup | ref | function | ss.setup(item)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_runner.py | testing/test_runner.py | 28 | addfinalizer | ref | function | ss.addfinalizer(values.pop, item)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_runner.py | testing/test_runner.py | 30 | teardown_exact | ref | function | ss.teardown_exact(None)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_runner.py | testing/test_runner.py | 33 | test_teardown_exact_stack_empty | def | function | def test_teardown_exact_stack_empty(self, pytester: Pytester) -> None:
item = pytester.getitem("def test_func(): pass")
ss = item.session._setupstate
ss.setup(item)
ss.teardown_exact(None)
ss.teardown_exact(None)
ss.teardown_exact(None)
def test_setup_fails_and_f... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_runner.py | testing/test_runner.py | 34 | getitem | ref | function | item = pytester.getitem("def test_func(): pass")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_runner.py | testing/test_runner.py | 36 | setup | ref | function | ss.setup(item)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_runner.py | testing/test_runner.py | 37 | teardown_exact | ref | function | ss.teardown_exact(None)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_runner.py | testing/test_runner.py | 38 | teardown_exact | ref | function | ss.teardown_exact(None)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_runner.py | testing/test_runner.py | 39 | teardown_exact | ref | function | ss.teardown_exact(None)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_runner.py | testing/test_runner.py | 41 | test_setup_fails_and_failure_is_cached | def | function | def test_setup_fails_and_failure_is_cached(self, pytester: Pytester) -> None:
item = pytester.getitem(
"""
def setup_module(mod):
raise ValueError(42)
def test_func(): pass
"""
)
ss = item.session._setupstate
with pytest.rai... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_runner.py | testing/test_runner.py | 42 | getitem | ref | function | item = pytester.getitem(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_runner.py | testing/test_runner.py | 50 | raises | ref | function | with pytest.raises(ValueError):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_runner.py | testing/test_runner.py | 51 | setup | ref | function | ss.setup(item)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_runner.py | testing/test_runner.py | 52 | raises | ref | function | with pytest.raises(ValueError):
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.