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_config.py
testing/test_config.py
1,240
A
ref
function
config.pluginmanager.register(A())
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,241
notify_exception
ref
function
config.notify_exception(excinfo, config.option)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,242
readouterr
ref
function
_, err = capfd.readouterr()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,245
parseconfig
ref
function
config = pytester.parseconfig("-p", "no:terminal")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,246
raises
ref
function
with pytest.raises(ValueError) as excinfo:
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,248
notify_exception
ref
function
config.notify_exception(excinfo, config.option)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,249
readouterr
ref
function
_, err = capfd.readouterr()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,253
test_no_terminal_discovery_error
def
function
def test_no_terminal_discovery_error(pytester: Pytester) -> None: pytester.makepyfile("raise TypeError('oops!')") result = pytester.runpytest("-p", "no:terminal", "--collect-only") assert result.ret == ExitCode.INTERRUPTED
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,254
makepyfile
ref
function
pytester.makepyfile("raise TypeError('oops!')")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,255
runpytest
ref
function
result = pytester.runpytest("-p", "no:terminal", "--collect-only")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,259
test_load_initial_conftest_last_ordering
def
function
def test_load_initial_conftest_last_ordering(_config_for_test): pm = _config_for_test.pluginmanager class My: def pytest_load_initial_conftests(self): pass m = My() pm.register(m) hc = pm.hook.pytest_load_initial_conftests values = hc._nonwrappers + hc._wrappers expecte...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,262
My
def
class
pytest_load_initial_conftests
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,263
pytest_load_initial_conftests
def
function
def pytest_load_initial_conftests(self): pass m = My() pm.register(m) hc = pm.hook.pytest_load_initial_conftests values = hc._nonwrappers + hc._wrappers expected = ["_pytest.config", m.__module__, "_pytest.capture", "_pytest.warnings"] assert [x.function.__module__ for x in ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,266
My
ref
function
m = My()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,267
register
ref
function
pm.register(m)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,274
test_get_plugin_specs_as_list
def
function
def test_get_plugin_specs_as_list() -> None: def exp_match(val: object) -> str: return ( "Plugins may be specified as a sequence or a ','-separated string of plugin names. Got: %s" % re.escape(repr(val)) ) with pytest.raises(pytest.UsageError, match=exp_match({"foo"})): ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,275
exp_match
def
function
def exp_match(val: object) -> str: return ( "Plugins may be specified as a sequence or a ','-separated string of plugin names. Got: %s" % re.escape(repr(val)) ) with pytest.raises(pytest.UsageError, match=exp_match({"foo"})): _get_plugin_specs_as_list({"foo"}) #...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,281
raises
ref
function
with pytest.raises(pytest.UsageError, match=exp_match({"foo"})):
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,281
exp_match
ref
function
with pytest.raises(pytest.UsageError, match=exp_match({"foo"})):
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,282
_get_plugin_specs_as_list
ref
function
_get_plugin_specs_as_list({"foo"}) # type: ignore[arg-type]
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,283
raises
ref
function
with pytest.raises(pytest.UsageError, match=exp_match({})):
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,283
exp_match
ref
function
with pytest.raises(pytest.UsageError, match=exp_match({})):
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,284
_get_plugin_specs_as_list
ref
function
_get_plugin_specs_as_list(dict()) # type: ignore[arg-type]
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,286
_get_plugin_specs_as_list
ref
function
assert _get_plugin_specs_as_list(None) == []
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,287
_get_plugin_specs_as_list
ref
function
assert _get_plugin_specs_as_list("") == []
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,288
_get_plugin_specs_as_list
ref
function
assert _get_plugin_specs_as_list("foo") == ["foo"]
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,289
_get_plugin_specs_as_list
ref
function
assert _get_plugin_specs_as_list("foo,bar") == ["foo", "bar"]
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,290
_get_plugin_specs_as_list
ref
function
assert _get_plugin_specs_as_list(["foo", "bar"]) == ["foo", "bar"]
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,291
_get_plugin_specs_as_list
ref
function
assert _get_plugin_specs_as_list(("foo", "bar")) == ["foo", "bar"]
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,294
test_collect_pytest_prefix_bug_integration
def
function
def test_collect_pytest_prefix_bug_integration(pytester: Pytester) -> None: """Integration test for issue #3775""" p = pytester.copy_example("config/collect_pytest_prefix") result = pytester.runpytest(p) result.stdout.fnmatch_lines(["* 1 passed *"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,296
copy_example
ref
function
p = pytester.copy_example("config/collect_pytest_prefix")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,297
runpytest
ref
function
result = pytester.runpytest(p)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,298
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["* 1 passed *"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,301
test_collect_pytest_prefix_bug
def
function
def test_collect_pytest_prefix_bug(pytestconfig): """Ensure we collect only actual functions from conftest files (#3775)""" class Dummy: class pytest_something: pass pm = pytestconfig.pluginmanager assert pm.parse_hookimpl_opts(Dummy(), "pytest_something") is None
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,304
Dummy
def
class
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,305
pytest_something
def
class
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,309
parse_hookimpl_opts
ref
function
assert pm.parse_hookimpl_opts(Dummy(), "pytest_something") is None
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,309
Dummy
ref
function
assert pm.parse_hookimpl_opts(Dummy(), "pytest_something") is None
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,312
TestRootdir
def
class
test_simple_noini test_with_ini test_pytestini_overrides_empty_other test_setuppy_fallback test_nothing test_with_specific_inifile test_explicit_config_file_sets_rootdir test_with_arg_outside_cwd_without_inifile test_with_arg_outside_cwd_with_inifile test_with_non_dir_arg test_with_existing_file_in_subdir test_with_con...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,313
test_simple_noini
def
function
def test_simple_noini(self, tmp_path: Path, monkeypatch: MonkeyPatch) -> None: assert get_common_ancestor([tmp_path]) == tmp_path a = tmp_path / "a" a.mkdir() assert get_common_ancestor([a, tmp_path]) == tmp_path assert get_common_ancestor([tmp_path, a]) == tmp_path m...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,314
get_common_ancestor
ref
function
assert get_common_ancestor([tmp_path]) == tmp_path
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,317
get_common_ancestor
ref
function
assert get_common_ancestor([a, tmp_path]) == tmp_path
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,318
get_common_ancestor
ref
function
assert get_common_ancestor([tmp_path, a]) == tmp_path
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,320
get_common_ancestor
ref
function
assert get_common_ancestor([]) == tmp_path
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,322
get_common_ancestor
ref
function
assert get_common_ancestor([no_path]) == tmp_path
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,323
get_common_ancestor
ref
function
assert get_common_ancestor([no_path / "a"]) == tmp_path
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,325
parametrize
ref
function
@pytest.mark.parametrize(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,328
param
ref
function
pytest.param("pytest.ini", "[pytest]\nx=10", id="pytest.ini"),
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,329
param
ref
function
pytest.param(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,332
param
ref
function
pytest.param("tox.ini", "[pytest]\nx=10", id="tox.ini"),
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,333
param
ref
function
pytest.param("setup.cfg", "[tool:pytest]\nx=10", id="setup.cfg"),
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,336
test_with_ini
def
function
def test_with_ini(self, tmp_path: Path, name: str, contents: str) -> None: inipath = tmp_path / name inipath.write_text(contents, "utf-8") a = tmp_path / "a" a.mkdir() b = a / "b" b.mkdir() for args in ([str(tmp_path)], [str(a)], [str(b)]): rootpa...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,345
determine_setup
ref
function
rootpath, parsed_inipath, _ = determine_setup(None, args)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,348
determine_setup
ref
function
rootpath, parsed_inipath, ini_config = determine_setup(None, [str(b), str(a)])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,353
parametrize
ref
function
@pytest.mark.parametrize("name", ["setup.cfg", "tox.ini"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,354
test_pytestini_overrides_empty_other
def
function
def test_pytestini_overrides_empty_other(self, tmp_path: Path, name: str) -> None: inipath = tmp_path / "pytest.ini" inipath.touch() a = tmp_path / "a" a.mkdir() (a / name).touch() rootpath, parsed_inipath, _ = determine_setup(None, [str(a)]) assert rootpath =...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,360
determine_setup
ref
function
rootpath, parsed_inipath, _ = determine_setup(None, [str(a)])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,364
test_setuppy_fallback
def
function
def test_setuppy_fallback(self, tmp_path: Path) -> None: a = tmp_path / "a" a.mkdir() (a / "setup.cfg").touch() (tmp_path / "setup.py").touch() rootpath, inipath, inicfg = determine_setup(None, [str(a)]) assert rootpath == tmp_path assert inipath is None ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,369
determine_setup
ref
function
rootpath, inipath, inicfg = determine_setup(None, [str(a)])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,374
test_nothing
def
function
def test_nothing(self, tmp_path: Path, monkeypatch: MonkeyPatch) -> None: monkeypatch.chdir(tmp_path) rootpath, inipath, inicfg = determine_setup(None, [str(tmp_path)]) assert rootpath == tmp_path assert inipath is None assert inicfg == {} @pytest.mark.parametrize( ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,376
determine_setup
ref
function
rootpath, inipath, inicfg = determine_setup(None, [str(tmp_path)])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,381
parametrize
ref
function
@pytest.mark.parametrize(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,385
param
ref
function
pytest.param(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,392
test_with_specific_inifile
def
function
def test_with_specific_inifile( self, tmp_path: Path, name: str, contents: str ) -> None: p = tmp_path / name p.touch() p.write_text(contents, "utf-8") rootpath, inipath, ini_config = determine_setup(str(p), [str(tmp_path)]) assert rootpath == tmp_path ass...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,398
determine_setup
ref
function
rootpath, inipath, ini_config = determine_setup(str(p), [str(tmp_path)])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,403
test_explicit_config_file_sets_rootdir
def
function
def test_explicit_config_file_sets_rootdir( self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch ) -> None: tests_dir = tmp_path / "tests" tests_dir.mkdir() monkeypatch.chdir(tmp_path) # No config file is explicitly given: rootdir is determined to be cwd. rootp...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,412
determine_setup
ref
function
rootpath, found_inipath, *_ = determine_setup(None, [str(tests_dir)])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,419
determine_setup
ref
function
rootpath, found_inipath, *_ = determine_setup(str(inipath), [str(tests_dir)])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,423
test_with_arg_outside_cwd_without_inifile
def
function
def test_with_arg_outside_cwd_without_inifile( self, tmp_path: Path, monkeypatch: MonkeyPatch ) -> None: monkeypatch.chdir(tmp_path) a = tmp_path / "a" a.mkdir() b = tmp_path / "b" b.mkdir() rootpath, inifile, _ = determine_setup(None, [str(a), str(b)]) ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,431
determine_setup
ref
function
rootpath, inifile, _ = determine_setup(None, [str(a), str(b)])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,435
test_with_arg_outside_cwd_with_inifile
def
function
def test_with_arg_outside_cwd_with_inifile(self, tmp_path: Path) -> None: a = tmp_path / "a" a.mkdir() b = tmp_path / "b" b.mkdir() inipath = a / "pytest.ini" inipath.touch() rootpath, parsed_inipath, _ = determine_setup(None, [str(a), str(b)]) assert ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,442
determine_setup
ref
function
rootpath, parsed_inipath, _ = determine_setup(None, [str(a), str(b)])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,446
parametrize
ref
function
@pytest.mark.parametrize("dirs", ([], ["does-not-exist"], ["a/does-not-exist"]))
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,447
test_with_non_dir_arg
def
function
def test_with_non_dir_arg( self, dirs: Sequence[str], tmp_path: Path, monkeypatch: MonkeyPatch ) -> None: monkeypatch.chdir(tmp_path) rootpath, inipath, _ = determine_setup(None, dirs) assert rootpath == tmp_path assert inipath is None def test_with_existing_file_in_...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,451
determine_setup
ref
function
rootpath, inipath, _ = determine_setup(None, dirs)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,455
test_with_existing_file_in_subdir
def
function
def test_with_existing_file_in_subdir( self, tmp_path: Path, monkeypatch: MonkeyPatch ) -> None: a = tmp_path / "a" a.mkdir() (a / "exists").touch() monkeypatch.chdir(tmp_path) rootpath, inipath, _ = determine_setup(None, ["a/exist"]) assert rootpath == tm...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,462
determine_setup
ref
function
rootpath, inipath, _ = determine_setup(None, ["a/exist"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,466
test_with_config_also_in_parent_directory
def
function
def test_with_config_also_in_parent_directory( self, tmp_path: Path, monkeypatch: MonkeyPatch ) -> None: """Regression test for #7807.""" (tmp_path / "setup.cfg").write_text("[tool:pytest]\n", "utf-8") (tmp_path / "myproject").mkdir() (tmp_path / "myproject" / "setup.cfg"...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,476
determine_setup
ref
function
rootpath, inipath, _ = determine_setup(None, ["tests/"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,482
TestOverrideIniArgs
def
class
test_override_ini_names test_override_ini_paths test_override_multiple_and_default test_override_ini_usage_error_bad_style test_override_ini_handled_asap test_addopts_before_initini test_addopts_from_env_not_concatenated test_addopts_from_ini_not_concatenated test_override_ini_does_not_contain_paths test_multiple_overr...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,483
parametrize
ref
function
@pytest.mark.parametrize("name", "setup.cfg tox.ini pytest.ini".split())
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,484
test_override_ini_names
def
function
def test_override_ini_names(self, pytester: Pytester, name: str) -> None: section = "[pytest]" if name != "setup.cfg" else "[tool:pytest]" pytester.path.joinpath(name).write_text( textwrap.dedent( """ {section} custom = 1.0""".format( ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,495
makeconftest
ref
function
pytester.makeconftest(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,500
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,507
runpytest
ref
function
result = pytester.runpytest("--override-ini", "custom=2.0", "-s")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,509
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["custom_option:2.0"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,511
runpytest
ref
function
result = pytester.runpytest(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,515
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["custom_option:3.0"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,517
parametrize
ref
function
@pytest.mark.parametrize("ini_type", ["paths", "pathlist"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,518
test_override_ini_paths
def
function
def test_override_ini_paths(self, pytester: Pytester, ini_type: str) -> None: pytester.makeconftest( f""" def pytest_addoption(parser): parser.addini("paths", "my new ini value", type="{ini_type}")""" ) pytester.makeini( """ [py...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,519
makeconftest
ref
function
pytester.makeconftest(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,524
makeini
ref
function
pytester.makeini(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,529
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,541
runpytest
ref
function
result = pytester.runpytest(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,544
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["user_path:bar1.py", "user_path:bar2.py"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,546
test_override_multiple_and_default
def
function
def test_override_multiple_and_default(self, pytester: Pytester) -> None: pytester.makeconftest( """ def pytest_addoption(parser): addini = parser.addini addini("custom_option_1", "", default="o1") addini("custom_option_2", "", default=...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,547
makeconftest
ref
function
pytester.makeconftest(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,556
makeini
ref
function
pytester.makeini(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,563
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,572
runpytest
ref
function
result = pytester.runpytest(