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
693
syspath_prepend
ref
function
monkeypatch.syspath_prepend(p)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
697
runpytest
ref
function
result = pytester.runpytest("--pyargs", "-v", "ns_pkg.hello", "ns_pkg/world")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
699
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
711
runpytest
ref
function
result = pytester.runpytest(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
715
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
719
test_invoke_test_and_doctestmodules
def
function
def test_invoke_test_and_doctestmodules(self, pytester: Pytester) -> None: p = pytester.makepyfile( """ def test(): pass """ ) result = pytester.runpytest(str(p) + "::test", "--doctest-modules") result.stdout.fnmatch_lines(["*1 passed*"...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
720
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
726
runpytest
ref
function
result = pytester.runpytest(str(p) + "::test", "--doctest-modules")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
727
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
729
test_cmdline_python_package_symlink
def
function
def test_cmdline_python_package_symlink( self, pytester: Pytester, monkeypatch ) -> None: """ --pyargs with packages with path containing symlink can have conftest.py in their package (#2985) """ monkeypatch.delenv("PYTHONDONTWRITEBYTECODE", raising=_False) ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
736
delenv
ref
function
monkeypatch.delenv("PYTHONDONTWRITEBYTECODE", raising=False)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
740
joinpath
ref
function
foo = d.joinpath("foo")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
742
joinpath
ref
function
foo.joinpath("__init__.py").touch()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
742
touch
ref
function
foo.joinpath("__init__.py").touch()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
743
joinpath
ref
function
lib = foo.joinpath("bar")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
745
joinpath
ref
function
lib.joinpath("__init__.py").touch()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
745
touch
ref
function
lib.joinpath("__init__.py").touch()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
746
joinpath
ref
function
lib.joinpath("test_bar.py").write_text(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
746
write_text
ref
function
lib.joinpath("test_bar.py").write_text(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
749
joinpath
ref
function
lib.joinpath("conftest.py").write_text(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
749
write_text
ref
function
lib.joinpath("conftest.py").write_text(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
755
symlink_or_skip
ref
function
symlink_or_skip(d, symlink_location, target_is_directory=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
771
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
771
prepend_pythonpath
ref
function
monkeypatch.setenv("PYTHONPATH", prepend_pythonpath(*search_path))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
773
syspath_prepend
ref
function
monkeypatch.syspath_prepend(p)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
777
runpytest
ref
function
result = pytester.runpytest("--pyargs", "-v", "foo.bar")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
780
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
788
test_cmdline_python_package_not_exists
def
function
def test_cmdline_python_package_not_exists(self, pytester: Pytester) -> None: result = pytester.runpytest("--pyargs", "tpkgwhatv") assert result.ret result.stderr.fnmatch_lines(["ERROR*module*or*package*not*found*"]) @pytest.mark.xfail(reason="decide: feature or bug") def test_nocla...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
789
runpytest
ref
function
result = pytester.runpytest("--pyargs", "tpkgwhatv")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
791
fnmatch_lines
ref
function
result.stderr.fnmatch_lines(["ERROR*module*or*package*not*found*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
793
xfail
ref
function
@pytest.mark.xfail(reason="decide: feature or bug")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
794
test_noclass_discovery_if_not_testcase
def
class
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
795
makepyfile
ref
function
testpath = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
806
inline_run
ref
function
reprec = pytester.inline_run(testpath)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
807
assertoutcome
ref
function
reprec.assertoutcome(passed=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
809
test_doctest_id
def
function
def test_doctest_id(self, pytester: Pytester) -> None: pytester.makefile( ".txt", """ >>> x=3 >>> x 4 """, ) testid = "test_doctest_id.txt::test_doctest_id.txt" expected_lines = [ "*= FAILURES =*", ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
810
makefile
ref
function
pytester.makefile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
825
runpytest
ref
function
result = pytester.runpytest(testid, "-rf", "--tb=short")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
826
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(expected_lines)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
831
runpytest
ref
function
result = pytester.runpytest(testid, "-rf", "--tb=short")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
832
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(expected_lines)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
834
test_core_backward_compatibility
def
function
def test_core_backward_compatibility(self) -> None: """Test backward compatibility for get_plugin_manager function. See #787.""" import _pytest.config assert ( type(_pytest.config.get_plugin_manager()) is _pytest.config.PytestPluginManager ) def test_has...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
839
get_plugin_manager
ref
function
type(_pytest.config.get_plugin_manager())
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
843
test_has_plugin
def
function
def test_has_plugin(self, request) -> None: """Test hasplugin function of the plugin manager (#932).""" assert request.config.pluginmanager.hasplugin("python")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
845
hasplugin
ref
function
assert request.config.pluginmanager.hasplugin("python")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
848
TestDurations
def
class
test_calls test_calls_show_2 test_calls_showall test_calls_showall_verbose test_with_deselected test_with_failing_collection test_with_not
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
861
test_calls
def
function
def test_calls(self, pytester: Pytester, mock_timing) -> None: pytester.makepyfile(self.source) result = pytester.runpytest_inprocess("--durations=10") assert result.ret == 0 result.stdout.fnmatch_lines_random( ["*durations*", "*call*test_3*", "*call*test_2*"] ) ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
862
makepyfile
ref
function
pytester.makepyfile(self.source)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
863
runpytest_inprocess
ref
function
result = pytester.runpytest_inprocess("--durations=10")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
866
fnmatch_lines_random
ref
function
result.stdout.fnmatch_lines_random(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
870
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
874
test_calls_show_2
def
function
def test_calls_show_2(self, pytester: Pytester, mock_timing) -> None: pytester.makepyfile(self.source) result = pytester.runpytest_inprocess("--durations=2") assert result.ret == 0 lines = result.stdout.get_lines_after("*slowest*durations*") assert "4 passed" in lines[2] ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
876
makepyfile
ref
function
pytester.makepyfile(self.source)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
877
runpytest_inprocess
ref
function
result = pytester.runpytest_inprocess("--durations=2")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
880
get_lines_after
ref
function
lines = result.stdout.get_lines_after("*slowest*durations*")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
883
test_calls_showall
def
function
def test_calls_showall(self, pytester: Pytester, mock_timing) -> None: pytester.makepyfile(self.source) result = pytester.runpytest_inprocess("--durations=0") assert result.ret == 0 tested = "3" for x in tested: for y in ("call",): # 'setup', 'call', 'teardown':...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
884
makepyfile
ref
function
pytester.makepyfile(self.source)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
885
runpytest_inprocess
ref
function
result = pytester.runpytest_inprocess("--durations=0")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
897
test_calls_showall_verbose
def
function
def test_calls_showall_verbose(self, pytester: Pytester, mock_timing) -> None: pytester.makepyfile(self.source) result = pytester.runpytest_inprocess("--durations=0", "-vv") assert result.ret == 0 for x in "123": for y in ("call",): # 'setup', 'call', 'teardown': ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
898
makepyfile
ref
function
pytester.makepyfile(self.source)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
899
runpytest_inprocess
ref
function
result = pytester.runpytest_inprocess("--durations=0", "-vv")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
910
test_with_deselected
def
function
def test_with_deselected(self, pytester: Pytester, mock_timing) -> None: pytester.makepyfile(self.source) result = pytester.runpytest_inprocess("--durations=2", "-k test_3") assert result.ret == 0 result.stdout.fnmatch_lines(["*durations*", "*call*test_3*"]) def test_with_faili...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
911
makepyfile
ref
function
pytester.makepyfile(self.source)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
912
runpytest_inprocess
ref
function
result = pytester.runpytest_inprocess("--durations=2", "-k test_3")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
915
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*durations*", "*call*test_3*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
917
test_with_failing_collection
def
function
def test_with_failing_collection(self, pytester: Pytester, mock_timing) -> None: pytester.makepyfile(self.source) pytester.makepyfile(test_collecterror="""xyz""") result = pytester.runpytest_inprocess("--durations=2", "-k test_1") assert result.ret == 2 result.stdout.fnmatch...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
918
makepyfile
ref
function
pytester.makepyfile(self.source)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
919
makepyfile
ref
function
pytester.makepyfile(test_collecterror="""xyz""")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
920
runpytest_inprocess
ref
function
result = pytester.runpytest_inprocess("--durations=2", "-k test_1")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
923
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*Interrupted: 1 error during collection*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
926
no_fnmatch_line
ref
function
result.stdout.no_fnmatch_line("*duration*")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
928
test_with_not
def
function
def test_with_not(self, pytester: Pytester, mock_timing) -> None: pytester.makepyfile(self.source) result = pytester.runpytest_inprocess("-k not 1") assert result.ret == 0
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
929
makepyfile
ref
function
pytester.makepyfile(self.source)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
930
runpytest_inprocess
ref
function
result = pytester.runpytest_inprocess("-k not 1")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
934
TestDurationsWithFixture
def
class
test_setup_function
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
947
test_setup_function
def
function
def test_setup_function(self, pytester: Pytester, mock_timing) -> None: pytester.makepyfile(self.source) result = pytester.runpytest_inprocess("--durations=10") assert result.ret == 0 result.stdout.fnmatch_lines_random( """ *durations* 5.00s call ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
948
makepyfile
ref
function
pytester.makepyfile(self.source)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
949
runpytest_inprocess
ref
function
result = pytester.runpytest_inprocess("--durations=10")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
952
fnmatch_lines_random
ref
function
result.stdout.fnmatch_lines_random(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
961
test_zipimport_hook
def
function
def test_zipimport_hook(pytester: Pytester) -> None: """Test package loader is being used correctly (see #1837).""" zipapp = pytest.importorskip("zipapp") pytester.path.joinpath("app").mkdir() pytester.makepyfile( **{ "app/foo.py": """ import pytest def main()...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
963
importorskip
ref
function
zipapp = pytest.importorskip("zipapp")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
964
joinpath
ref
function
pytester.path.joinpath("app").mkdir()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
965
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
974
joinpath
ref
function
target = pytester.path.joinpath("foo.zip")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
975
create_archive
ref
function
zipapp.create_archive(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
976
joinpath
ref
function
str(pytester.path.joinpath("app")), str(target), main="foo:main"
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
978
runpython
ref
function
result = pytester.runpython(target)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
980
fnmatch_lines
ref
function
result.stderr.fnmatch_lines(["*not found*foo*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
981
no_fnmatch_line
ref
function
result.stdout.no_fnmatch_line("*INTERNALERROR>*")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
984
test_import_plugin_unicode_name
def
function
def test_import_plugin_unicode_name(pytester: Pytester) -> None: pytester.makepyfile(myplugin="") pytester.makepyfile("def test(): pass") pytester.makeconftest("pytest_plugins = ['myplugin']") r = pytester.runpytest() assert r.ret == 0
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
985
makepyfile
ref
function
pytester.makepyfile(myplugin="")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
986
makepyfile
ref
function
pytester.makepyfile("def test(): pass")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
987
makeconftest
ref
function
pytester.makeconftest("pytest_plugins = ['myplugin']")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
988
runpytest
ref
function
r = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
992
test_pytest_plugins_as_module
def
function
def test_pytest_plugins_as_module(pytester: Pytester) -> None: """Do not raise an error if pytest_plugins attribute is a module (#3899)""" pytester.makepyfile( **{ "__init__.py": "", "pytest_plugins.py": "", "conftest.py": "from . import pytest_plugins", "...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
994
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
1,002
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
1,003
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["* 1 passed in *"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
1,006
test_deferred_hook_checking
def
function
def test_deferred_hook_checking(pytester: Pytester) -> None: """Check hooks as late as possible (#1821).""" pytester.syspathinsert() pytester.makepyfile( **{ "plugin.py": """ class Hooks(object): def pytest_my_hook(self, config): pass def pyte...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/acceptance_test.py
testing/acceptance_test.py
1,008
syspathinsert
ref
function
pytester.syspathinsert()