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,583
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,592
test_override_ini_usage_error_bad_style
def
function
def test_override_ini_usage_error_bad_style(self, pytester: Pytester) -> None: pytester.makeini( """ [pytest] xdist_strict=_False """ ) result = pytester.runpytest("--override-ini", "xdist_strict", "_True") result.stderr.fnmatch_lines( ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,593
makeini
ref
function
pytester.makeini(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,599
runpytest
ref
function
result = pytester.runpytest("--override-ini", "xdist_strict", "True")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,600
fnmatch_lines
ref
function
result.stderr.fnmatch_lines(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,606
parametrize
ref
function
@pytest.mark.parametrize("with_ini", [True, False])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,607
test_override_ini_handled_asap
def
function
def test_override_ini_handled_asap( self, pytester: Pytester, with_ini: bool ) -> None: """-o should be handled as soon as possible and always override what's in ini files (#2238)""" if with_ini: pytester.makeini( """ [pytest] p...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,612
makeini
ref
function
pytester.makeini(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,618
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,624
runpytest
ref
function
result = pytester.runpytest("--override-ini", "python_files=unittest_*.py")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,625
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*1 passed in*"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,627
test_addopts_before_initini
def
function
def test_addopts_before_initini( self, monkeypatch: MonkeyPatch, _config_for_test, _sys_snapshot ) -> None: cache_dir = ".custom_cache" monkeypatch.setenv("PYTEST_ADDOPTS", "-o cache_dir=%s" % cache_dir) config = _config_for_test config._preparse([], addopts=_True) ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,631
setenv
ref
function
monkeypatch.setenv("PYTEST_ADDOPTS", "-o cache_dir=%s" % cache_dir)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,633
_preparse
ref
function
config._preparse([], addopts=True)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,636
test_addopts_from_env_not_concatenated
def
function
def test_addopts_from_env_not_concatenated( self, monkeypatch: MonkeyPatch, _config_for_test ) -> None: """PYTEST_ADDOPTS should not take values from normal args (#4265).""" monkeypatch.setenv("PYTEST_ADDOPTS", "-o") config = _config_for_test with pytest.raises(UsageError...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,640
setenv
ref
function
monkeypatch.setenv("PYTEST_ADDOPTS", "-o")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,642
raises
ref
function
with pytest.raises(UsageError) as excinfo:
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,643
_preparse
ref
function
config._preparse(["cache_dir=ignored"], addopts=True)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,649
test_addopts_from_ini_not_concatenated
def
function
def test_addopts_from_ini_not_concatenated(self, pytester: Pytester) -> None: """`addopts` from ini should not take values from normal args (#4265).""" pytester.makeini( """ [pytest] addopts=-o """ ) result = pytester.runpytest("cache_dir=i...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,651
makeini
ref
function
pytester.makeini(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,657
runpytest
ref
function
result = pytester.runpytest("cache_dir=ignored")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,658
fnmatch_lines
ref
function
result.stderr.fnmatch_lines(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,666
test_override_ini_does_not_contain_paths
def
function
def test_override_ini_does_not_contain_paths( self, _config_for_test, _sys_snapshot ) -> None: """Check that -o no longer swallows all options after it (#3103)""" config = _config_for_test config._preparse(["-o", "cache_dir=/cache", "/some/test/path"]) assert config._over...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,671
_preparse
ref
function
config._preparse(["-o", "cache_dir=/cache", "/some/test/path"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,674
test_multiple_override_ini_options
def
function
def test_multiple_override_ini_options(self, pytester: Pytester) -> None: """Ensure a file path following a '-o' option does not generate an error (#3103)""" pytester.makepyfile( **{ "conftest.py": """ def pytest_addoption(parser): pars...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,676
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,694
runpytest
ref
function
result = pytester.runpytest("-o", "foo=1", "-o", "bar=0", "test_foo.py")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,696
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["collected 1 item", "*= 1 passed in *="])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,699
test_help_via_addopts
def
function
def test_help_via_addopts(pytester: Pytester) -> None: pytester.makeini( """ [pytest] addopts = --unknown-option-should-allow-for-help --help """ ) result = pytester.runpytest() assert result.ret == 0 result.stdout.fnmatch_lines( [ "usage: *", ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,700
makeini
ref
function
pytester.makeini(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,706
runpytest
ref
function
result = pytester.runpytest()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,708
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,718
test_help_and_version_after_argument_error
def
function
def test_help_and_version_after_argument_error(pytester: Pytester) -> None: pytester.makeconftest( """ def validate(arg): raise argparse.ArgumentTypeError("argerror") def pytest_addoption(parser): group = parser.getgroup('cov') group.addoption( ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,719
makeconftest
ref
function
pytester.makeconftest(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,732
makeini
ref
function
pytester.makeini(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,738
runpytest
ref
function
result = pytester.runpytest("--help")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,739
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,746
fnmatch_lines
ref
function
result.stderr.fnmatch_lines(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,757
runpytest
ref
function
result = pytester.runpytest("--version")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,758
fnmatch_lines
ref
function
result.stdout.fnmatch_lines([f"pytest {pytest.__version__}"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,762
test_help_formatter_uses_py_get_terminal_width
def
function
def test_help_formatter_uses_py_get_terminal_width(monkeypatch: MonkeyPatch) -> None: from _pytest.config.argparsing import DropShorterLongHelpFormatter monkeypatch.setenv("COLUMNS", "90") formatter = DropShorterLongHelpFormatter("prog") assert formatter._width == 90 monkeypatch.setattr("_pytest._...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,765
setenv
ref
function
monkeypatch.setenv("COLUMNS", "90")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,766
DropShorterLongHelpFormatter
ref
function
formatter = DropShorterLongHelpFormatter("prog")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,770
DropShorterLongHelpFormatter
ref
function
formatter = DropShorterLongHelpFormatter("prog")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,773
DropShorterLongHelpFormatter
ref
function
formatter = DropShorterLongHelpFormatter("prog", width=42)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,777
test_config_does_not_load_blocked_plugin_from_args
def
function
def test_config_does_not_load_blocked_plugin_from_args(pytester: Pytester) -> None: """This tests that pytest's config setup handles "-p no:X".""" p = pytester.makepyfile("def test(capfd): pass") result = pytester.runpytest(str(p), "-pno:capture") result.stdout.fnmatch_lines(["E fixture 'capfd' no...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,779
makepyfile
ref
function
p = pytester.makepyfile("def test(capfd): pass")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,780
runpytest
ref
function
result = pytester.runpytest(str(p), "-pno:capture")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,781
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["E fixture 'capfd' not found"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,784
runpytest
ref
function
result = pytester.runpytest(str(p), "-pno:capture", "-s")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,785
fnmatch_lines
ref
function
result.stderr.fnmatch_lines(["*: error: unrecognized arguments: -s"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,789
test_invocation_args
def
function
def test_invocation_args(pytester: Pytester) -> None: """Ensure that Config.invocation_* arguments are correctly defined""" class DummyPlugin: pass p = pytester.makepyfile("def test(): pass") plugin = DummyPlugin() rec = pytester.inline_run(p, "-v", plugins=[plugin]) calls = rec.getcal...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,792
DummyPlugin
def
class
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,795
makepyfile
ref
function
p = pytester.makepyfile("def test(): pass")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,796
DummyPlugin
ref
function
plugin = DummyPlugin()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,797
inline_run
ref
function
rec = pytester.inline_run(p, "-v", plugins=[plugin])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,798
getcalls
ref
function
calls = rec.getcalls("pytest_runtest_protocol")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,812
raises
ref
function
with pytest.raises(TypeError):
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,813
InvocationParams
ref
function
Config.InvocationParams(args=None, plugins=None, dir=Path()) # type: ignore[arg-type]
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,816
parametrize
ref
function
@pytest.mark.parametrize(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,824
test_config_blocked_default_plugins
def
function
def test_config_blocked_default_plugins(pytester: Pytester, plugin: str) -> None: if plugin == "debugging": # Fixed in xdist (after 1.27.0). # https://github.com/pytest-dev/pytest-xdist/pull/422 try: import xdist # noqa: F401 except ImportError: pass ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,833
skip
ref
function
pytest.skip("does not work with xdist currently")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,835
makepyfile
ref
function
p = pytester.makepyfile("def test(): pass")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,836
runpytest
ref
function
result = pytester.runpytest(str(p), "-pno:%s" % plugin)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,840
fnmatch_lines
ref
function
result.stderr.fnmatch_lines(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,850
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["* 1 passed in *"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,852
makepyfile
ref
function
p = pytester.makepyfile("def test(): assert 0")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,853
runpytest
ref
function
result = pytester.runpytest(str(p), "-pno:%s" % plugin)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,856
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["* 1 failed in *"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,861
TestSetupCfg
def
class
test_pytest_setup_cfg_unsupported test_pytest_custom_cfg_unsupported
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,862
test_pytest_setup_cfg_unsupported
def
function
def test_pytest_setup_cfg_unsupported(self, pytester: Pytester) -> None: pytester.makefile( ".cfg", setup=""" [pytest] addopts = --verbose """, ) with pytest.raises(pytest.fail.Exception): pytester.runpytest() def test_...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,863
makefile
ref
function
pytester.makefile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,870
raises
ref
function
with pytest.raises(pytest.fail.Exception):
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,871
runpytest
ref
function
pytester.runpytest()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,873
test_pytest_custom_cfg_unsupported
def
function
def test_pytest_custom_cfg_unsupported(self, pytester: Pytester) -> None: pytester.makefile( ".cfg", custom=""" [pytest] addopts = --verbose """, ) with pytest.raises(pytest.fail.Exception): pytester.runpytest("-c", "custom....
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,874
makefile
ref
function
pytester.makefile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,881
raises
ref
function
with pytest.raises(pytest.fail.Exception):
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,882
runpytest
ref
function
pytester.runpytest("-c", "custom.cfg")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,885
TestPytestPluginsVariable
def
class
test_pytest_plugins_in_non_top_level_conftest_unsupported test_pytest_plugins_in_non_top_level_conftest_unsupported_pyargs test_pytest_plugins_in_non_top_level_conftest_unsupported_no_top_level_conftest test_pytest_plugins_in_non_top_level_conftest_unsupported_no_false_positives
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,886
test_pytest_plugins_in_non_top_level_conftest_unsupported
def
function
def test_pytest_plugins_in_non_top_level_conftest_unsupported( self, pytester: Pytester ) -> None: pytester.makepyfile( **{ "subdirectory/conftest.py": """ pytest_plugins=['capture'] """ } ) pytester.makepyfile( ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,889
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,896
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,902
runpytest
ref
function
res = pytester.runpytest()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,905
fnmatch_lines
ref
function
res.stdout.fnmatch_lines([f"*{msg}*", f"*subdirectory{os.sep}conftest.py*"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,907
parametrize
ref
function
@pytest.mark.parametrize("use_pyargs", [True, False])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,908
test_pytest_plugins_in_non_top_level_conftest_unsupported_pyargs
def
function
def test_pytest_plugins_in_non_top_level_conftest_unsupported_pyargs( self, pytester: Pytester, use_pyargs: bool ) -> None: """When using --pyargs, do not emit the warning about non-top-level conftest warnings (#4039, #4044)""" files = { "src/pkg/__init__.py": "", ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,921
makepyfile
ref
function
pytester.makepyfile(**files)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,922
syspathinsert
ref
function
pytester.syspathinsert(pytester.path.joinpath("src"))
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,925
runpytest
ref
function
res = pytester.runpytest(*args)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,933
fnmatch_lines
ref
function
res.stdout.fnmatch_lines([f"*{msg}*"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,935
test_pytest_plugins_in_non_top_level_conftest_unsupported_no_top_level_conftest
def
function
def test_pytest_plugins_in_non_top_level_conftest_unsupported_no_top_level_conftest( self, pytester: Pytester ) -> None: subdirectory = pytester.path.joinpath("subdirectory") subdirectory.mkdir() pytester.makeconftest( """ pytest_plugins=['capture'] ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,940
makeconftest
ref
function
pytester.makeconftest(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,949
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,956
runpytest_subprocess
ref
function
res = pytester.runpytest_subprocess()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,959
fnmatch_lines
ref
function
res.stdout.fnmatch_lines([f"*{msg}*", f"*subdirectory{os.sep}conftest.py*"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,961
test_pytest_plugins_in_non_top_level_conftest_unsupported_no_false_positives
def
function
def test_pytest_plugins_in_non_top_level_conftest_unsupported_no_false_positives( self, pytester: Pytester ) -> None: pytester.makepyfile( "def test_func(): pass", **{ "subdirectory/conftest": "pass", "conftest": """ imp...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,964
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,975
runpytest_subprocess
ref
function
res = pytester.runpytest_subprocess()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,981
test_conftest_import_error_repr
def
function
def test_conftest_import_error_repr(tmp_path: Path) -> None: """`ConftestImportFailure` should use a short error message and readable path to the failed conftest.py file.""" path = tmp_path.joinpath("foo/conftest.py") with pytest.raises( ConftestImportFailure, match=re.escape(f"RuntimeEr...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_config.py
testing/test_config.py
1,985
raises
ref
function
with pytest.raises(