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/warning_types.py | src/_pytest/warning_types.py | 10 | PytestWarning | def | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/warning_types.py | src/_pytest/warning_types.py | 17 | PytestAssertRewriteWarning | def | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/warning_types.py | src/_pytest/warning_types.py | 24 | PytestCacheWarning | def | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/warning_types.py | src/_pytest/warning_types.py | 31 | PytestConfigWarning | def | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/warning_types.py | src/_pytest/warning_types.py | 38 | PytestCollectionWarning | def | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/warning_types.py | src/_pytest/warning_types.py | 44 | PytestDeprecationWarning | def | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/warning_types.py | src/_pytest/warning_types.py | 51 | PytestRemovedIn7Warning | def | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/warning_types.py | src/_pytest/warning_types.py | 58 | PytestRemovedIn8Warning | def | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/warning_types.py | src/_pytest/warning_types.py | 65 | PytestExperimentalApiWarning | def | class | simple |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/warning_types.py | src/_pytest/warning_types.py | 75 | simple | def | function | def simple(cls, apiname: str) -> "PytestExperimentalApiWarning":
return cls(
"{apiname} is an experimental api that may change over time".format(
apiname=apiname
)
)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/warning_types.py | src/_pytest/warning_types.py | 76 | cls | ref | function | return cls(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/warning_types.py | src/_pytest/warning_types.py | 84 | PytestUnhandledCoroutineWarning | def | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/warning_types.py | src/_pytest/warning_types.py | 96 | PytestUnknownMarkWarning | def | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/warning_types.py | src/_pytest/warning_types.py | 106 | PytestUnraisableExceptionWarning | def | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/warning_types.py | src/_pytest/warning_types.py | 118 | PytestUnhandledThreadExceptionWarning | def | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/warning_types.py | src/_pytest/warning_types.py | 132 | UnformattedWarning | def | class | format |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/warning_types.py | src/_pytest/warning_types.py | 144 | category | ref | function | return self.category(self.template.format(**kwargs))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/warnings.py | src/_pytest/warnings.py | 19 | pytest_configure | def | function | def pytest_configure(config: Config) -> None:
config.addinivalue_line(
"markers",
"filterwarnings(warning): add a warning filter to the given test. "
"see https://docs.pytest.org/en/stable/how-to/capture-warnings.html#pytest-mark-filterwarnings ",
)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/warnings.py | src/_pytest/warnings.py | 20 | addinivalue_line | ref | function | config.addinivalue_line(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/warnings.py | src/_pytest/warnings.py | 28 | catch_warnings_for_item | def | function | def catch_warnings_for_item(
config: Config,
ihook,
when: "Literal['config', 'collect', 'runtest']",
item: Optional[Item],
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/warnings.py | src/_pytest/warnings.py | 40 | getini | ref | function | config_filters = config.getini("filterwarnings")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/warnings.py | src/_pytest/warnings.py | 42 | catch_warnings | ref | function | with warnings.catch_warnings(record=True) as log:
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/warnings.py | src/_pytest/warnings.py | 48 | filterwarnings | ref | function | warnings.filterwarnings("always", category=DeprecationWarning)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/warnings.py | src/_pytest/warnings.py | 49 | filterwarnings | ref | function | warnings.filterwarnings("always", category=PendingDeprecationWarning)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/warnings.py | src/_pytest/warnings.py | 51 | filterwarnings | ref | function | warnings.filterwarnings("error", category=pytest.PytestRemovedIn7Warning)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/warnings.py | src/_pytest/warnings.py | 53 | apply_warning_filters | ref | function | apply_warning_filters(config_filters, cmdline_filters)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/warnings.py | src/_pytest/warnings.py | 58 | iter_markers | ref | function | for mark in item.iter_markers(name="filterwarnings"):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/warnings.py | src/_pytest/warnings.py | 60 | filterwarnings | ref | function | warnings.filterwarnings(*parse_warning_filter(arg, escape=False))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/warnings.py | src/_pytest/warnings.py | 60 | parse_warning_filter | ref | function | warnings.filterwarnings(*parse_warning_filter(arg, escape=False))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/warnings.py | src/_pytest/warnings.py | 65 | call_historic | ref | function | ihook.pytest_warning_captured.call_historic(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/warnings.py | src/_pytest/warnings.py | 73 | call_historic | ref | function | ihook.pytest_warning_recorded.call_historic(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/warnings.py | src/_pytest/warnings.py | 83 | warning_record_to_str | def | function | def warning_record_to_str(warning_message: warnings.WarningMessage) -> str:
"""Convert a warnings.WarningMessage to a string."""
warn_msg = warning_message.message
msg = warnings.formatwarning(
str(warn_msg),
warning_message.category,
warning_message.filename,
warning_message... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/warnings.py | src/_pytest/warnings.py | 86 | formatwarning | ref | function | msg = warnings.formatwarning(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/warnings.py | src/_pytest/warnings.py | 96 | hookimpl | ref | function | @pytest.hookimpl(hookwrapper=True, tryfirst=True)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/warnings.py | src/_pytest/warnings.py | 97 | pytest_runtest_protocol | def | function | def pytest_runtest_protocol(item: Item) -> Generator[None, None, None]:
with catch_warnings_for_item(
config=item.config, ihook=item.ihook, when="runtest", item=item
):
yield
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/warnings.py | src/_pytest/warnings.py | 98 | catch_warnings_for_item | ref | function | with catch_warnings_for_item(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/warnings.py | src/_pytest/warnings.py | 104 | hookimpl | ref | function | @pytest.hookimpl(hookwrapper=True, tryfirst=True)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/warnings.py | src/_pytest/warnings.py | 105 | pytest_collection | def | function | def pytest_collection(session: Session) -> Generator[None, None, None]:
config = session.config
with catch_warnings_for_item(
config=config, ihook=config.hook, when="collect", item=None
):
yield
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/warnings.py | src/_pytest/warnings.py | 107 | catch_warnings_for_item | ref | function | with catch_warnings_for_item(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/warnings.py | src/_pytest/warnings.py | 113 | hookimpl | ref | function | @pytest.hookimpl(hookwrapper=True)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/warnings.py | src/_pytest/warnings.py | 114 | pytest_terminal_summary | def | function | def pytest_terminal_summary(
terminalreporter: TerminalReporter,
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/warnings.py | src/_pytest/warnings.py | 118 | catch_warnings_for_item | ref | function | with catch_warnings_for_item(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/warnings.py | src/_pytest/warnings.py | 124 | hookimpl | ref | function | @pytest.hookimpl(hookwrapper=True)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/warnings.py | src/_pytest/warnings.py | 125 | pytest_sessionfinish | def | function | def pytest_sessionfinish(session: Session) -> Generator[None, None, None]:
config = session.config
with catch_warnings_for_item(
config=config, ihook=config.hook, when="config", item=None
):
yield
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/warnings.py | src/_pytest/warnings.py | 127 | catch_warnings_for_item | ref | function | with catch_warnings_for_item(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/warnings.py | src/_pytest/warnings.py | 133 | hookimpl | ref | function | @pytest.hookimpl(hookwrapper=True)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/warnings.py | src/_pytest/warnings.py | 134 | pytest_load_initial_conftests | def | function | def pytest_load_initial_conftests(
early_config: "Config",
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/warnings.py | src/_pytest/warnings.py | 137 | catch_warnings_for_item | ref | function | with catch_warnings_for_item(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/pytest/__init__.py | src/pytest/__init__.py | 160 | __getattr__ | def | function | def __getattr__(name: str) -> object:
if name == "Instance":
# The import emits a deprecation warning.
from _pytest.python import Instance
return Instance
raise AttributeError(f"module {__name__} has no attribute {name}")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/pytest/__main__.py | src/pytest/__main__.py | 4 | console_main | ref | function | raise SystemExit(pytest.console_main())
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/pytest/collect.py | src/pytest/collect.py | 21 | FakeCollectModule | def | class | __init__ __dir__ __getattr__ |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/pytest/collect.py | src/pytest/collect.py | 37 | FakeCollectModule | ref | function | sys.modules["pytest.collect"] = FakeCollectModule()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py | testing/acceptance_test.py | 13 | prepend_pythonpath | def | function | def prepend_pythonpath(*dirs) -> str:
cur = os.getenv("PYTHONPATH")
if cur:
dirs += (cur,)
return os.pathsep.join(str(p) for p in dirs)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py | testing/acceptance_test.py | 20 | TestGeneralUsage | def | class | test_config_error test_root_conftest_syntax_error test_early_hook_error_issue38_1 test_early_hook_configure_error_issue38 test_file_not_found test_file_not_found_unconfigure_issue143 test_config_preparse_plugin_option test_early_load_setuptools_name test_assertion_rewrite test_nested_import_error test_not_collectable_a... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py | testing/acceptance_test.py | 21 | test_config_error | def | function | def test_config_error(self, pytester: Pytester) -> None:
pytester.copy_example("conftest_usageerror/conftest.py")
result = pytester.runpytest(pytester.path)
assert result.ret == ExitCode.USAGE_ERROR
result.stderr.fnmatch_lines(["*ERROR: hello"])
result.stdout.fnmatch_lines(["... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py | testing/acceptance_test.py | 22 | copy_example | ref | function | pytester.copy_example("conftest_usageerror/conftest.py")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py | testing/acceptance_test.py | 23 | runpytest | ref | function | result = pytester.runpytest(pytester.path)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py | testing/acceptance_test.py | 25 | fnmatch_lines | ref | function | result.stderr.fnmatch_lines(["*ERROR: hello"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py | testing/acceptance_test.py | 26 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*pytest_unconfigure_called"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py | testing/acceptance_test.py | 28 | test_root_conftest_syntax_error | def | function | def test_root_conftest_syntax_error(self, pytester: Pytester) -> None:
pytester.makepyfile(conftest="raise SyntaxError\n")
result = pytester.runpytest()
result.stderr.fnmatch_lines(["*raise SyntaxError*"])
assert result.ret != 0
def test_early_hook_error_issue38_1(self, pytester... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py | testing/acceptance_test.py | 29 | makepyfile | ref | function | pytester.makepyfile(conftest="raise SyntaxError\n")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py | testing/acceptance_test.py | 30 | runpytest | ref | function | result = pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py | testing/acceptance_test.py | 31 | fnmatch_lines | ref | function | result.stderr.fnmatch_lines(["*raise SyntaxError*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py | testing/acceptance_test.py | 34 | test_early_hook_error_issue38_1 | def | function | def test_early_hook_error_issue38_1(self, pytester: Pytester) -> None:
pytester.makeconftest(
"""
def pytest_sessionstart():
0 / 0
"""
)
result = pytester.runpytest(pytester.path)
assert result.ret != 0
# tracestyle is native by... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py | testing/acceptance_test.py | 35 | makeconftest | ref | function | pytester.makeconftest(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py | testing/acceptance_test.py | 41 | runpytest | ref | function | result = pytester.runpytest(pytester.path)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py | testing/acceptance_test.py | 44 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py | testing/acceptance_test.py | 47 | runpytest | ref | function | result = pytester.runpytest(pytester.path, "--fulltrace")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py | testing/acceptance_test.py | 50 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py | testing/acceptance_test.py | 54 | test_early_hook_configure_error_issue38 | def | function | def test_early_hook_configure_error_issue38(self, pytester: Pytester) -> None:
pytester.makeconftest(
"""
def pytest_configure():
0 / 0
"""
)
result = pytester.runpytest(pytester.path)
assert result.ret != 0
# here we get it on ... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py | testing/acceptance_test.py | 55 | makeconftest | ref | function | pytester.makeconftest(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py | testing/acceptance_test.py | 61 | runpytest | ref | function | result = pytester.runpytest(pytester.path)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py | testing/acceptance_test.py | 64 | fnmatch_lines | ref | function | result.stderr.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py | testing/acceptance_test.py | 68 | test_file_not_found | def | function | def test_file_not_found(self, pytester: Pytester) -> None:
result = pytester.runpytest("asd")
assert result.ret != 0
result.stderr.fnmatch_lines(["ERROR: file or directory not found: asd"])
def test_file_not_found_unconfigure_issue143(self, pytester: Pytester) -> None:
pytester.... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py | testing/acceptance_test.py | 69 | runpytest | ref | function | result = pytester.runpytest("asd")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py | testing/acceptance_test.py | 71 | fnmatch_lines | ref | function | result.stderr.fnmatch_lines(["ERROR: file or directory not found: asd"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py | testing/acceptance_test.py | 73 | test_file_not_found_unconfigure_issue143 | def | function | def test_file_not_found_unconfigure_issue143(self, pytester: Pytester) -> None:
pytester.makeconftest(
"""
def pytest_configure():
print("---configure")
def pytest_unconfigure():
print("---unconfigure")
"""
)
result ... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py | testing/acceptance_test.py | 74 | makeconftest | ref | function | pytester.makeconftest(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py | testing/acceptance_test.py | 82 | runpytest | ref | function | result = pytester.runpytest("-s", "asd")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py | testing/acceptance_test.py | 84 | fnmatch_lines | ref | function | result.stderr.fnmatch_lines(["ERROR: file or directory not found: asd"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py | testing/acceptance_test.py | 85 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*---configure", "*---unconfigure"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py | testing/acceptance_test.py | 87 | test_config_preparse_plugin_option | def | function | def test_config_preparse_plugin_option(self, pytester: Pytester) -> None:
pytester.makepyfile(
pytest_xyz="""
def pytest_addoption(parser):
parser.addoption("--xyz", dest="xyz", action="store")
"""
)
pytester.makepyfile(
test_one=""... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py | testing/acceptance_test.py | 88 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py | testing/acceptance_test.py | 94 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py | testing/acceptance_test.py | 100 | runpytest | ref | function | result = pytester.runpytest("-p", "pytest_xyz", "--xyz=123", syspathinsert=True)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py | testing/acceptance_test.py | 102 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*1 passed*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py | testing/acceptance_test.py | 104 | parametrize | ref | function | @pytest.mark.parametrize("load_cov_early", [True, False])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py | testing/acceptance_test.py | 105 | test_early_load_setuptools_name | def | function | def test_early_load_setuptools_name(
self, pytester: Pytester, monkeypatch, load_cov_early
) -> None:
monkeypatch.delenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD")
pytester.makepyfile(mytestplugin1_module="")
pytester.makepyfile(mytestplugin2_module="")
pytester.makepyfile(mycov_... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py | testing/acceptance_test.py | 108 | delenv | ref | function | monkeypatch.delenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py | testing/acceptance_test.py | 110 | makepyfile | ref | function | pytester.makepyfile(mytestplugin1_module="")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py | testing/acceptance_test.py | 111 | makepyfile | ref | function | pytester.makepyfile(mytestplugin2_module="")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py | testing/acceptance_test.py | 112 | makepyfile | ref | function | pytester.makepyfile(mycov_module="")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py | testing/acceptance_test.py | 113 | syspathinsert | ref | function | pytester.syspathinsert()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py | testing/acceptance_test.py | 118 | DummyEntryPoint | def | class | load |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py | testing/acceptance_test.py | 123 | load | def | function | def load(self):
__import__(self.module)
loaded.append(self.name)
return sys.modules[self.module]
entry_points = [
DummyEntryPoint("myplugin1", "mytestplugin1_module"),
DummyEntryPoint("myplugin2", "mytestplugin2_module"),
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py | testing/acceptance_test.py | 129 | DummyEntryPoint | ref | function | DummyEntryPoint("myplugin1", "mytestplugin1_module"),
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py | testing/acceptance_test.py | 130 | DummyEntryPoint | ref | function | DummyEntryPoint("myplugin2", "mytestplugin2_module"),
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py | testing/acceptance_test.py | 131 | DummyEntryPoint | ref | function | DummyEntryPoint("mycov", "mycov_module"),
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py | testing/acceptance_test.py | 135 | DummyDist | def | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py | testing/acceptance_test.py | 139 | my_dists | def | function | def my_dists():
return (DummyDist(entry_points),)
monkeypatch.setattr(importlib_metadata, "distributions", my_dists)
params = ("-p", "mycov") if load_cov_early else ()
pytester.runpytest_inprocess(*params)
if load_cov_early:
assert loaded == ["mycov", "my... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.