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/src/_pytest/junitxml.py
src/_pytest/junitxml.py
332
_check_record_param_type
def
function
def _check_record_param_type(param: str, v: str) -> None: """Used by record_testsuite_property to check that the given parameter name is of the proper type.""" __tracebackhide__ = _True if not isinstance(v, str): msg = "{param} parameter needs to be a string, but {g} given" # type: ignore[unrea...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
341
fixture
ref
function
@pytest.fixture(scope="session")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
342
record_testsuite_property
def
function
def record_testsuite_property(request: FixtureRequest) -> Callable[[str, object], None]: """Record a new ``<property>`` tag as child of the root ``<testsuite>``. This is suitable to writing global information regarding the entire test suite, and is compatible with ``xunit2`` JUnit family. This is a ``...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
367
record_func
def
function
def record_func(name: str, value: object) -> None: """No-op function in case --junitxml was not passed in the command-line.""" __tracebackhide__ = _True _check_record_param_type("name", name) xml = request.config.stash.get(xml_key, None) if xml is not None: record_func = xml...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
370
_check_record_param_type
ref
function
_check_record_param_type("name", name)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
378
pytest_addoption
def
function
def pytest_addoption(parser: Parser) -> None: group = parser.getgroup("terminal reporting") group.addoption( "--junitxml", "--junit-xml", action="store", dest="xmlpath", metavar="path", type=functools.partial(filename_arg, optname="--junitxml"), default=No...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
379
getgroup
ref
function
group = parser.getgroup("terminal reporting")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
380
addoption
ref
function
group.addoption(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
390
addoption
ref
function
group.addoption(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
398
addini
ref
function
parser.addini(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
401
addini
ref
function
parser.addini(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
407
addini
ref
function
parser.addini(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
413
addini
ref
function
parser.addini(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
418
addini
ref
function
parser.addini(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
425
pytest_configure
def
function
def pytest_configure(config: Config) -> None: xmlpath = config.option.xmlpath # Prevent opening xmllog on worker nodes (xdist). if xmlpath and not hasattr(config, "workerinput"): junit_family = config.getini("junit_family") config.stash[xml_key] = LogXML( xmlpath, con...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
429
getini
ref
function
junit_family = config.getini("junit_family")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
430
LogXML
ref
function
config.stash[xml_key] = LogXML(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
433
getini
ref
function
config.getini("junit_suite_name"),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
434
getini
ref
function
config.getini("junit_logging"),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
435
getini
ref
function
config.getini("junit_duration_report"),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
437
getini
ref
function
config.getini("junit_log_passing_tests"),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
439
register
ref
function
config.pluginmanager.register(config.stash[xml_key])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
442
pytest_unconfigure
def
function
def pytest_unconfigure(config: Config) -> None: xml = config.stash.get(xml_key, None) if xml: del config.stash[xml_key] config.pluginmanager.unregister(xml)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
446
unregister
ref
function
config.pluginmanager.unregister(xml)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
449
mangle_test_address
def
function
def mangle_test_address(address: str) -> List[str]: path, possible_open_bracket, params = address.partition("[") names = path.split("::") # Convert file path to dotted path. names[0] = names[0].replace(nodes.SEP, ".") names[0] = re.sub(r"\.py$", "", names[0]) # Put any params back. names[-1]...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
460
LogXML
def
class
__init__ finalize node_reporter add_stats _opentestcase pytest_runtest_logreport update_testcase_duration pytest_collectreport pytest_internalerror pytest_sessionstart pytest_sessionfinish pytest_terminal_summary add_global_property _get_global_properties_node
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
471
expanduser
ref
function
logfile = os.path.expanduser(os.path.expandvars(logfile))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
471
expandvars
ref
function
logfile = os.path.expanduser(os.path.expandvars(logfile))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
472
normpath
ref
function
self.logfile = os.path.normpath(os.path.abspath(logfile))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
472
abspath
ref
function
self.logfile = os.path.normpath(os.path.abspath(logfile))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
496
finalize
def
function
def finalize(self, report: TestReport) -> None: nodeid = getattr(report, "nodeid", report) # Local hack to handle xdist report order. workernode = getattr(report, "node", None) reporter = self.node_reporters.pop((nodeid, workernode)) if reporter is not None: repor...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
502
finalize
ref
function
reporter.finalize()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
504
node_reporter
def
function
def node_reporter(self, report: Union[TestReport, str]) -> _NodeReporter: nodeid: Union[str, TestReport] = getattr(report, "nodeid", report) # Local hack to handle xdist report order. workernode = getattr(report, "node", None) key = nodeid, workernode if key in self.node_re...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
515
_NodeReporter
ref
function
reporter = _NodeReporter(nodeid, self)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
522
add_stats
def
function
def add_stats(self, key: str) -> None: if key in self.stats: self.stats[key] += 1 def _opentestcase(self, report: TestReport) -> _NodeReporter: reporter = self.node_reporter(report) reporter.record_testreport(report) return reporter def pytest_runtest_logreport(...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
526
_opentestcase
def
function
def _opentestcase(self, report: TestReport) -> _NodeReporter: reporter = self.node_reporter(report) reporter.record_testreport(report) return reporter def pytest_runtest_logreport(self, report: TestReport) -> None: """Handle a setup/call/teardown report, generating the appropria...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
527
node_reporter
ref
function
reporter = self.node_reporter(report)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
528
record_testreport
ref
function
reporter.record_testreport(report)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
531
pytest_runtest_logreport
def
function
def pytest_runtest_logreport(self, report: TestReport) -> None: """Handle a setup/call/teardown report, generating the appropriate XML tags as necessary. Note: due to plugins like xdist, this hook may be called in interlaced order with reports from other nodes. For example: ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
557
_opentestcase
ref
function
reporter = self._opentestcase(report)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
558
append_pass
ref
function
reporter.append_pass(report)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
580
finalize
ref
function
self.finalize(close_report)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
582
_opentestcase
ref
function
reporter = self._opentestcase(report)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
584
append_failure
ref
function
reporter.append_failure(report)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
587
write_captured_output
ref
function
reporter.write_captured_output(report)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
589
append_error
ref
function
reporter.append_error(report)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
591
_opentestcase
ref
function
reporter = self._opentestcase(report)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
592
append_skipped
ref
function
reporter.append_skipped(report)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
593
update_testcase_duration
ref
function
self.update_testcase_duration(report)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
595
_opentestcase
ref
function
reporter = self._opentestcase(report)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
596
write_captured_output
ref
function
reporter.write_captured_output(report)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
599
add_property
ref
function
reporter.add_property(propname, str(propvalue))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
601
finalize
ref
function
self.finalize(report)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
619
update_testcase_duration
def
function
def update_testcase_duration(self, report: TestReport) -> None: """Accumulate total duration for nodeid from given report and update the Junit.testcase with the new total if already created.""" if self.report_duration == "total" or report.when == self.report_duration: reporter = ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
623
node_reporter
ref
function
reporter = self.node_reporter(report)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
626
pytest_collectreport
def
function
def pytest_collectreport(self, report: TestReport) -> None: if not report.passed: reporter = self._opentestcase(report) if report.failed: reporter.append_collect_error(report) else: reporter.append_collect_skipped(report) def pytest_in...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
628
_opentestcase
ref
function
reporter = self._opentestcase(report)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
630
append_collect_error
ref
function
reporter.append_collect_error(report)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
632
append_collect_skipped
ref
function
reporter.append_collect_skipped(report)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
634
pytest_internalerror
def
function
def pytest_internalerror(self, excrepr: ExceptionRepr) -> None: reporter = self.node_reporter("internal") reporter.attrs.update(classname="pytest", name="internal") reporter._add_simple("error", "internal error", str(excrepr)) def pytest_sessionstart(self) -> None: self.suite_st...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
635
node_reporter
ref
function
reporter = self.node_reporter("internal")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
637
_add_simple
ref
function
reporter._add_simple("error", "internal error", str(excrepr))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
639
pytest_sessionstart
def
function
def pytest_sessionstart(self) -> None: self.suite_start_time = timing.time() def pytest_sessionfinish(self) -> None: dirname = os.path.dirname(os.path.abspath(self.logfile)) if not os.path.isdir(dirname): os.makedirs(dirname) with open(self.logfile, "w", encoding="u...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
642
pytest_sessionfinish
def
function
def pytest_sessionfinish(self) -> None: dirname = os.path.dirname(os.path.abspath(self.logfile)) if not os.path.isdir(dirname): os.makedirs(dirname) with open(self.logfile, "w", encoding="utf-8") as logfile: suite_stop_time = timing.time() suite_time_delt...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
643
dirname
ref
function
dirname = os.path.dirname(os.path.abspath(self.logfile))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
643
abspath
ref
function
dirname = os.path.dirname(os.path.abspath(self.logfile))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
644
isdir
ref
function
if not os.path.isdir(dirname):
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
660
Element
ref
function
suite_node = ET.Element(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
671
_get_global_properties_node
ref
function
global_properties = self._get_global_properties_node()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
675
to_xml
ref
function
suite_node.append(node_reporter.to_xml())
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
676
Element
ref
function
testsuites = ET.Element("testsuites")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
678
tostring
ref
function
logfile.write(ET.tostring(testsuites, encoding="unicode"))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
680
pytest_terminal_summary
def
function
def pytest_terminal_summary(self, terminalreporter: TerminalReporter) -> None: terminalreporter.write_sep("-", f"generated xml file: {self.logfile}") def add_global_property(self, name: str, value: object) -> None: __tracebackhide__ = _True _check_record_param_type("name", name) ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
681
write_sep
ref
function
terminalreporter.write_sep("-", f"generated xml file: {self.logfile}")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
683
add_global_property
def
function
def add_global_property(self, name: str, value: object) -> None: __tracebackhide__ = _True _check_record_param_type("name", name) self.global_properties.append((name, bin_xml_escape(value))) def _get_global_properties_node(self) -> Optional[ET.Element]: """Return a Junit node co...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
685
_check_record_param_type
ref
function
_check_record_param_type("name", name)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
686
bin_xml_escape
ref
function
self.global_properties.append((name, bin_xml_escape(value)))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
688
_get_global_properties_node
def
function
def _get_global_properties_node(self) -> Optional[ET.Element]: """Return a Junit node containing custom properties, if any.""" if self.global_properties: properties = ET.Element("properties") for name, value in self.global_properties: properties.append(ET.Elem...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
691
Element
ref
function
properties = ET.Element("properties")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/junitxml.py
src/_pytest/junitxml.py
693
Element
ref
function
properties.append(ET.Element("property", name=name, value=value))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/legacypath.py
src/_pytest/legacypath.py
27
Testdir
def
class
__init__ tmpdir test_tmproot request plugins plugins monkeypatch make_hook_recorder chdir finalize makefile makeconftest makeini getinicfg makepyprojecttoml makepyfile maketxtfile syspathinsert mkdir mkpydir copy_example getnode getpathnode genitems runitem inline_runsource inline_genitems inline_run runpytest_inproces...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/legacypath.py
src/_pytest/legacypath.py
41
check_ispytest
ref
function
check_ispytest(_ispytest)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/legacypath.py
src/_pytest/legacypath.py
45
tmpdir
def
function
def tmpdir(self) -> LEGACY_PATH: """Temporary directory where tests are executed.""" return legacy_path(self._pytester.path) @property def test_tmproot(self) -> LEGACY_PATH: return legacy_path(self._pytester._test_tmproot) @property def request(self): return self._p...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/legacypath.py
src/_pytest/legacypath.py
47
legacy_path
ref
function
return legacy_path(self._pytester.path)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/legacypath.py
src/_pytest/legacypath.py
50
test_tmproot
def
function
def test_tmproot(self) -> LEGACY_PATH: return legacy_path(self._pytester._test_tmproot) @property def request(self): return self._pytester._request @property def plugins(self): return self._pytester.plugins @plugins.setter def plugins(self, plugins): self._...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/legacypath.py
src/_pytest/legacypath.py
51
legacy_path
ref
function
return legacy_path(self._pytester._test_tmproot)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/legacypath.py
src/_pytest/legacypath.py
54
request
def
function
def request(self): return self._pytester._request @property def plugins(self): return self._pytester.plugins @plugins.setter def plugins(self, plugins): self._pytester.plugins = plugins @property def monkeypatch(self) -> pytest.MonkeyPatch: return self._pyt...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/legacypath.py
src/_pytest/legacypath.py
58
plugins
def
function
def plugins(self): return self._pytester.plugins @plugins.setter def plugins(self, plugins): self._pytester.plugins = plugins @property def monkeypatch(self) -> pytest.MonkeyPatch: return self._pytester._monkeypatch def make_hook_recorder(self, pluginmanager) -> pytest...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/legacypath.py
src/_pytest/legacypath.py
62
plugins
def
function
def plugins(self, plugins): self._pytester.plugins = plugins @property def monkeypatch(self) -> pytest.MonkeyPatch: return self._pytester._monkeypatch def make_hook_recorder(self, pluginmanager) -> pytest.HookRecorder: """See :meth:`Pytester.make_hook_recorder`.""" retu...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/legacypath.py
src/_pytest/legacypath.py
66
monkeypatch
def
function
def monkeypatch(self) -> pytest.MonkeyPatch: return self._pytester._monkeypatch def make_hook_recorder(self, pluginmanager) -> pytest.HookRecorder: """See :meth:`Pytester.make_hook_recorder`.""" return self._pytester.make_hook_recorder(pluginmanager) def chdir(self) -> None: ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/legacypath.py
src/_pytest/legacypath.py
69
make_hook_recorder
def
function
def make_hook_recorder(self, pluginmanager) -> pytest.HookRecorder: """See :meth:`Pytester.make_hook_recorder`.""" return self._pytester.make_hook_recorder(pluginmanager) def chdir(self) -> None: """See :meth:`Pytester.chdir`.""" return self._pytester.chdir() def finalize(s...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/legacypath.py
src/_pytest/legacypath.py
71
make_hook_recorder
ref
function
return self._pytester.make_hook_recorder(pluginmanager)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/legacypath.py
src/_pytest/legacypath.py
73
chdir
def
function
def chdir(self) -> None: """See :meth:`Pytester.chdir`.""" return self._pytester.chdir() def finalize(self) -> None: """See :meth:`Pytester._finalize`.""" return self._pytester._finalize() def makefile(self, ext, *args, **kwargs) -> LEGACY_PATH: """See :meth:`Pytest...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/legacypath.py
src/_pytest/legacypath.py
75
chdir
ref
function
return self._pytester.chdir()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/legacypath.py
src/_pytest/legacypath.py
77
finalize
def
function
def finalize(self) -> None: """See :meth:`Pytester._finalize`.""" return self._pytester._finalize() def makefile(self, ext, *args, **kwargs) -> LEGACY_PATH: """See :meth:`Pytester.makefile`.""" if ext and not ext.startswith("."): # pytester.makefile is going to throw...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/legacypath.py
src/_pytest/legacypath.py
79
_finalize
ref
function
return self._pytester._finalize()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/legacypath.py
src/_pytest/legacypath.py
81
makefile
def
function
def makefile(self, ext, *args, **kwargs) -> LEGACY_PATH: """See :meth:`Pytester.makefile`.""" if ext and not ext.startswith("."): # pytester.makefile is going to throw a ValueError in a way that # testdir.makefile did not, because # pathlib.Path is stricter suffix...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/legacypath.py
src/_pytest/legacypath.py
91
legacy_path
ref
function
return legacy_path(self._pytester.makefile(ext, *args, **kwargs))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/legacypath.py
src/_pytest/legacypath.py
91
makefile
ref
function
return legacy_path(self._pytester.makefile(ext, *args, **kwargs))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/legacypath.py
src/_pytest/legacypath.py
93
makeconftest
def
function
def makeconftest(self, source) -> LEGACY_PATH: """See :meth:`Pytester.makeconftest`.""" return legacy_path(self._pytester.makeconftest(source)) def makeini(self, source) -> LEGACY_PATH: """See :meth:`Pytester.makeini`.""" return legacy_path(self._pytester.makeini(source)) d...