fname
stringlengths
63
176
rel_fname
stringclasses
706 values
line
int64
-1
4.5k
name
stringlengths
1
81
kind
stringclasses
2 values
category
stringclasses
2 values
info
stringlengths
0
77.9k
⌀
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
467
main
ref
function
pytest.main([str(pytester.path)], plugins=["invalid.module"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
470
joinpath
ref
function
p = pytester.path.joinpath("test_test_plugins_given_as_strings.py")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
471
write_text
ref
function
p.write_text("def test_foo(): pass")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
473
setitem
ref
function
monkeypatch.setitem(sys.modules, "myplugin", mod)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
474
main
ref
function
assert pytest.main(args=[str(pytester.path)], plugins=["myplugin"]) == 0
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
476
test_parametrized_with_bytes_regex
def
function
def test_parametrized_with_bytes_regex(self, pytester: Pytester) -> None: p = pytester.makepyfile( """ import re import pytest @pytest.mark.parametrize('r', [re.compile(b'foo')]) def test_stuff(r): pass """ ) ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
477
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
486
runpytest
ref
function
res = pytester.runpytest(p)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
487
fnmatch_lines
ref
function
res.stdout.fnmatch_lines(["*1 passed*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
489
test_parametrized_with_null_bytes
def
function
def test_parametrized_with_null_bytes(self, pytester: Pytester) -> None: """Test parametrization with values that contain null bytes and unicode characters (#2644, #2957)""" p = pytester.makepyfile( """\ import pytest @pytest.mark.parametrize("data", [b"\\x00", "...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
491
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
500
runpytest
ref
function
res = pytester.runpytest(p)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
501
assert_outcomes
ref
function
res.assert_outcomes(passed=3)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
504
TestInvocationVariants
def
class
test_earlyinit test_pydoc test_import_star_pytest test_double_pytestcmdline test_python_minus_m_invocation_ok test_python_minus_m_invocation_fail test_python_pytest_package test_invoke_with_invalid_type test_invoke_with_path test_invoke_plugin_api test_pyargs_importerror test_pyargs_only_imported_once test_pyargs_filen...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
505
test_earlyinit
def
function
def test_earlyinit(self, pytester: Pytester) -> None: p = pytester.makepyfile( """ import pytest assert hasattr(pytest, 'mark') """ ) result = pytester.runpython(p) assert result.ret == 0 def test_pydoc(self, pytester: Pytester) -> Non...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
506
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
512
runpython
ref
function
result = pytester.runpython(p)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
515
test_pydoc
def
function
def test_pydoc(self, pytester: Pytester) -> None: result = pytester.runpython_c("import pytest;help(pytest)") assert result.ret == 0 s = result.stdout.str() assert "MarkGenerator" in s def test_import_star_pytest(self, pytester: Pytester) -> None: p = pytester.makepyfile...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
516
runpython_c
ref
function
result = pytester.runpython_c("import pytest;help(pytest)")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
521
test_import_star_pytest
def
function
def test_import_star_pytest(self, pytester: Pytester) -> None: p = pytester.makepyfile( """ from pytest import * #Item #File main skip xfail """ ) result = pytester.runpython(p) assert result....
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
522
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
532
runpython
ref
function
result = pytester.runpython(p)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
535
test_double_pytestcmdline
def
function
def test_double_pytestcmdline(self, pytester: Pytester) -> None: p = pytester.makepyfile( run=""" import pytest pytest.main() pytest.main() """ ) pytester.makepyfile( """ def test_hello(): pass ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
536
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
543
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
549
runpython
ref
function
result = pytester.runpython(p)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
550
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*1 passed*", "*1 passed*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
552
test_python_minus_m_invocation_ok
def
function
def test_python_minus_m_invocation_ok(self, pytester: Pytester) -> None: p1 = pytester.makepyfile("def test_hello(): pass") res = pytester.run(sys.executable, "-m", "pytest", str(p1)) assert res.ret == 0 def test_python_minus_m_invocation_fail(self, pytester: Pytester) -> None: ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
553
makepyfile
ref
function
p1 = pytester.makepyfile("def test_hello(): pass")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
554
run
ref
function
res = pytester.run(sys.executable, "-m", "pytest", str(p1))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
557
test_python_minus_m_invocation_fail
def
function
def test_python_minus_m_invocation_fail(self, pytester: Pytester) -> None: p1 = pytester.makepyfile("def test_fail(): 0/0") res = pytester.run(sys.executable, "-m", "pytest", str(p1)) assert res.ret == 1 def test_python_pytest_package(self, pytester: Pytester) -> None: p1 = pyte...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
558
makepyfile
ref
function
p1 = pytester.makepyfile("def test_fail(): 0/0")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
559
run
ref
function
res = pytester.run(sys.executable, "-m", "pytest", str(p1))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
562
test_python_pytest_package
def
function
def test_python_pytest_package(self, pytester: Pytester) -> None: p1 = pytester.makepyfile("def test_pass(): pass") res = pytester.run(sys.executable, "-m", "pytest", str(p1)) assert res.ret == 0 res.stdout.fnmatch_lines(["*1 passed*"]) def test_invoke_with_invalid_type(self) ->...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
563
makepyfile
ref
function
p1 = pytester.makepyfile("def test_pass(): pass")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
564
run
ref
function
res = pytester.run(sys.executable, "-m", "pytest", str(p1))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
566
fnmatch_lines
ref
function
res.stdout.fnmatch_lines(["*1 passed*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
568
test_invoke_with_invalid_type
def
function
def test_invoke_with_invalid_type(self) -> None: with pytest.raises( TypeError, match="expected to be a list of strings, got: '-h'" ): pytest.main("-h") # type: ignore[arg-type] def test_invoke_with_path(self, pytester: Pytester, capsys) -> None: retcode = pytes...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
569
raises
ref
function
with pytest.raises(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
572
main
ref
function
pytest.main("-h") # type: ignore[arg-type]
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
574
test_invoke_with_path
def
function
def test_invoke_with_path(self, pytester: Pytester, capsys) -> None: retcode = pytest.main([str(pytester.path)]) assert retcode == ExitCode.NO_TESTS_COLLECTED out, err = capsys.readouterr() def test_invoke_plugin_api(self, capsys) -> None: class MyPlugin: def pytest_...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
575
main
ref
function
retcode = pytest.main([str(pytester.path)])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
577
readouterr
ref
function
out, err = capsys.readouterr()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
579
test_invoke_plugin_api
def
function
def test_invoke_plugin_api(self, capsys) -> None: class MyPlugin: def pytest_addoption(self, parser): parser.addoption("--myopt") pytest.main(["-h"], plugins=[MyPlugin()]) out, err = capsys.readouterr() assert "--myopt" in out def test_pyargs_importe...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
580
MyPlugin
def
class
pytest_addoption
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
581
pytest_addoption
def
function
def pytest_addoption(self, parser): parser.addoption("--myopt") pytest.main(["-h"], plugins=[MyPlugin()]) out, err = capsys.readouterr() assert "--myopt" in out def test_pyargs_importerror(self, pytester: Pytester, monkeypatch) -> None: monkeypatch.delen...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
582
addoption
ref
function
parser.addoption("--myopt")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
584
main
ref
function
pytest.main(["-h"], plugins=[MyPlugin()])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
584
MyPlugin
ref
function
pytest.main(["-h"], plugins=[MyPlugin()])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
585
readouterr
ref
function
out, err = capsys.readouterr()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
588
test_pyargs_importerror
def
function
def test_pyargs_importerror(self, pytester: Pytester, monkeypatch) -> None: monkeypatch.delenv("PYTHONDONTWRITEBYTECODE", _False) path = pytester.mkpydir("tpkg") path.joinpath("test_hello.py").write_text("raise ImportError") result = pytester.runpytest("--pyargs", "tpkg.test_hello",...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
589
delenv
ref
function
monkeypatch.delenv("PYTHONDONTWRITEBYTECODE", False)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
590
mkpydir
ref
function
path = pytester.mkpydir("tpkg")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
591
joinpath
ref
function
path.joinpath("test_hello.py").write_text("raise ImportError")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
591
write_text
ref
function
path.joinpath("test_hello.py").write_text("raise ImportError")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
593
runpytest
ref
function
result = pytester.runpytest("--pyargs", "tpkg.test_hello", syspathinsert=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
596
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["collected*0*items*/*1*error"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
598
test_pyargs_only_imported_once
def
function
def test_pyargs_only_imported_once(self, pytester: Pytester) -> None: pkg = pytester.mkpydir("foo") pkg.joinpath("test_foo.py").write_text( "print('hello from test_foo')\ndef test(): pass" ) pkg.joinpath("conftest.py").write_text( "def pytest_configure(config)...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
599
mkpydir
ref
function
pkg = pytester.mkpydir("foo")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
600
joinpath
ref
function
pkg.joinpath("test_foo.py").write_text(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
600
write_text
ref
function
pkg.joinpath("test_foo.py").write_text(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
603
joinpath
ref
function
pkg.joinpath("conftest.py").write_text(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
603
write_text
ref
function
pkg.joinpath("conftest.py").write_text(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
607
runpytest
ref
function
result = pytester.runpytest(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
615
test_pyargs_filename_looks_like_module
def
function
def test_pyargs_filename_looks_like_module(self, pytester: Pytester) -> None: pytester.path.joinpath("conftest.py").touch() pytester.path.joinpath("t.py").write_text("def test(): pass") result = pytester.runpytest("--pyargs", "t.py") assert result.ret == ExitCode.OK def test_cmd...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
616
joinpath
ref
function
pytester.path.joinpath("conftest.py").touch()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
616
touch
ref
function
pytester.path.joinpath("conftest.py").touch()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
617
joinpath
ref
function
pytester.path.joinpath("t.py").write_text("def test(): pass")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
617
write_text
ref
function
pytester.path.joinpath("t.py").write_text("def test(): pass")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
618
runpytest
ref
function
result = pytester.runpytest("--pyargs", "t.py")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
621
test_cmdline_python_package
def
function
def test_cmdline_python_package(self, pytester: Pytester, monkeypatch) -> None: import warnings monkeypatch.delenv("PYTHONDONTWRITEBYTECODE", _False) path = pytester.mkpydir("tpkg") path.joinpath("test_hello.py").write_text("def test_hello(): pass") path.joinpath("test_world...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
624
delenv
ref
function
monkeypatch.delenv("PYTHONDONTWRITEBYTECODE", False)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
625
mkpydir
ref
function
path = pytester.mkpydir("tpkg")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
626
joinpath
ref
function
path.joinpath("test_hello.py").write_text("def test_hello(): pass")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
626
write_text
ref
function
path.joinpath("test_hello.py").write_text("def test_hello(): pass")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
627
joinpath
ref
function
path.joinpath("test_world.py").write_text("def test_world(): pass")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
627
write_text
ref
function
path.joinpath("test_world.py").write_text("def test_world(): pass")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
628
runpytest
ref
function
result = pytester.runpytest("--pyargs", "tpkg")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
630
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*2 passed*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
631
runpytest
ref
function
result = pytester.runpytest("--pyargs", "tpkg.test_hello", syspathinsert=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
633
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
635
mkpydir
ref
function
empty_package = pytester.mkpydir("empty_package")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
636
setenv
ref
function
monkeypatch.setenv("PYTHONPATH", str(empty_package), prepend=os.pathsep)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
641
runpytest
ref
function
result = pytester.runpytest("--pyargs", ".")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
643
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*2 passed*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
645
setenv
ref
function
monkeypatch.setenv("PYTHONPATH", str(pytester), prepend=os.pathsep)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
646
runpytest
ref
function
result = pytester.runpytest("--pyargs", "tpkg.test_missing", syspathinsert=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
648
fnmatch_lines
ref
function
result.stderr.fnmatch_lines(["*not*found*test_missing*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
650
test_cmdline_python_namespace_package
def
function
def test_cmdline_python_namespace_package( self, pytester: Pytester, monkeypatch ) -> None: """Test --pyargs option with namespace packages (#1567). Ref: https://packaging.python.org/guides/packaging-namespace-packages/ """ monkeypatch.delenv("PYTHONDONTWRITEBYTECODE", r...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
657
delenv
ref
function
monkeypatch.delenv("PYTHONDONTWRITEBYTECODE", raising=False)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
663
joinpath
ref
function
ns = d.joinpath("ns_pkg")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
665
joinpath
ref
function
ns.joinpath("__init__.py").write_text(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
665
write_text
ref
function
ns.joinpath("__init__.py").write_text(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
668
joinpath
ref
function
lib = ns.joinpath(dirname)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
670
joinpath
ref
function
lib.joinpath("__init__.py").touch()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
670
touch
ref
function
lib.joinpath("__init__.py").touch()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
671
joinpath
ref
function
lib.joinpath(f"test_{dirname}.py").write_text(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
671
write_text
ref
function
lib.joinpath(f"test_{dirname}.py").write_text(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
691
setenv
ref
function
monkeypatch.setenv("PYTHONPATH", prepend_pythonpath(*search_path))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
691
prepend_pythonpath
ref
function
monkeypatch.setenv("PYTHONPATH", prepend_pythonpath(*search_path))