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/python/fixtures.py | testing/python/fixtures.py | 1,532 | makeconftest | ref | function | pytester.makeconftest(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,551 | test_parsefactories_evil_objects_issue214 | def | function | def test_parsefactories_evil_objects_issue214(self, pytester: Pytester) -> None:
pytester.makepyfile(
"""
class A(object):
def __call__(self):
pass
def __getattr__(self, name):
raise RuntimeError()
a ... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,552 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,564 | inline_run | ref | function | reprec = pytester.inline_run()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,565 | assertoutcome | ref | function | reprec.assertoutcome(passed=1, failed=0)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,567 | test_parsefactories_conftest | def | function | def test_parsefactories_conftest(self, pytester: Pytester) -> None:
pytester.makepyfile(
"""
def test_hello(item, fm):
for name in ("fm", "hello", "item"):
faclist = fm.getfixturedefs(name, item.nodeid)
assert len(faclist) == 1
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,568 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,578 | inline_run | ref | function | reprec = pytester.inline_run("-s")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,579 | assertoutcome | ref | function | reprec.assertoutcome(passed=1)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,581 | test_parsefactories_conftest_and_module_and_class | def | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,584 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,605 | inline_run | ref | function | reprec = pytester.inline_run("-s")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,606 | assertoutcome | ref | function | reprec.assertoutcome(passed=1)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,608 | test_parsefactories_relative_node_ids | def | function | def test_parsefactories_relative_node_ids(
self, pytester: Pytester, monkeypatch: MonkeyPatch
) -> None:
# example mostly taken from:
# https://mail.python.org/pipermail/pytest-dev/2014-September/002617.html
runner = pytester.mkdir("runner")
package = pytester.mkdir("pack... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,654 | inline_run | ref | function | reprec = pytester.inline_run()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,655 | assertoutcome | ref | function | reprec.assertoutcome(passed=2)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,656 | context | ref | function | with monkeypatch.context() as mp:
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,658 | inline_run | ref | function | reprec = pytester.inline_run("..")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,659 | assertoutcome | ref | function | reprec.assertoutcome(passed=2)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,661 | test_package_xunit_fixture | def | function | def test_package_xunit_fixture(self, pytester: Pytester) -> None:
pytester.makepyfile(
__init__="""\
values = []
"""
)
package = pytester.mkdir("package")
package.joinpath("__init__.py").write_text(
textwrap.dedent(
"""\
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,662 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,709 | inline_run | ref | function | reprec = pytester.inline_run()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,710 | assertoutcome | ref | function | reprec.assertoutcome(passed=2)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,712 | test_package_fixture_complex | def | function | def test_package_fixture_complex(self, pytester: Pytester) -> None:
pytester.makepyfile(
__init__="""\
values = []
"""
)
pytester.syspathinsert(pytester.path.name)
package = pytester.mkdir("package")
package.joinpath("__init__.py").write_text("... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,713 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,718 | syspathinsert | ref | function | pytester.syspathinsert(pytester.path.name)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,750 | inline_run | ref | function | reprec = pytester.inline_run()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,751 | assertoutcome | ref | function | reprec.assertoutcome(passed=2)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,753 | test_collect_custom_items | def | function | def test_collect_custom_items(self, pytester: Pytester) -> None:
pytester.copy_example("fixtures/custom_item")
result = pytester.runpytest("foo")
result.stdout.fnmatch_lines(["*passed*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,754 | copy_example | ref | function | pytester.copy_example("fixtures/custom_item")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,755 | runpytest | ref | function | result = pytester.runpytest("foo")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,756 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*passed*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,759 | TestAutouseDiscovery | def | class | pytester test_parsefactories_conftest test_two_classes_separated_autouse test_setup_at_classlevel test_setup_enabled_functionnode test_callables_nocode test_autouse_in_conftests test_autouse_in_module_and_two_classes |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,761 | pytester | def | function | def pytester(self, pytester: Pytester) -> Pytester:
pytester.makeconftest(
"""
import pytest
@pytest.fixture
def hello(request):
return "conftest"
@pytest.fixture
def fm(request):
return request._fixtur... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,762 | makeconftest | ref | function | pytester.makeconftest(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,787 | test_parsefactories_conftest | def | function | def test_parsefactories_conftest(self, pytester: Pytester) -> None:
pytester.makepyfile(
"""
def test_hello(item, fm):
for name in ("fm", "hello", "item"):
faclist = fm.getfixturedefs(name, item.nodeid)
assert len(faclist) == 1
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,788 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,798 | inline_run | ref | function | reprec = pytester.inline_run("-s")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,799 | assertoutcome | ref | function | reprec.assertoutcome(passed=1)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,801 | test_two_classes_separated_autouse | def | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,802 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,821 | inline_run | ref | function | reprec = pytester.inline_run()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,822 | assertoutcome | ref | function | reprec.assertoutcome(passed=2)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,824 | test_setup_at_classlevel | def | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,825 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,838 | inline_run | ref | function | reprec = pytester.inline_run("-s")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,839 | assertoutcome | ref | function | reprec.assertoutcome(passed=2)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,841 | xfail | ref | function | @pytest.mark.xfail(reason="'enabled' feature not implemented")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,842 | test_setup_enabled_functionnode | def | function | def test_setup_enabled_functionnode(self, pytester: Pytester) -> None:
pytester.makepyfile(
"""
import pytest
def enabled(parentnode, markers):
return "needsdb" in markers
@pytest.fixture(params=[1,2])
def db(request):
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,843 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,866 | inline_run | ref | function | reprec = pytester.inline_run("-s")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,867 | assertoutcome | ref | function | reprec.assertoutcome(passed=2)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,869 | test_callables_nocode | def | function | def test_callables_nocode(self, pytester: Pytester) -> None:
"""An imported mock.call would break setup/factory discovery due to
it being callable and __code__ not being a code object."""
pytester.makepyfile(
"""
class _call(tuple):
def __call__(self, *k... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,872 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,883 | inline_run | ref | function | reprec = pytester.inline_run("-s")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,884 | assertoutcome | ref | function | reprec.assertoutcome(failed=0, passed=0)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,886 | test_autouse_in_conftests | def | function | def test_autouse_in_conftests(self, pytester: Pytester) -> None:
a = pytester.mkdir("a")
b = pytester.mkdir("a1")
conftest = pytester.makeconftest(
"""
import pytest
@pytest.fixture(autouse=_True)
def hello():
xxx
"""
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,889 | makeconftest | ref | function | conftest = pytester.makeconftest(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,900 | runpytest | ref | function | result = pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,901 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,907 | test_autouse_in_module_and_two_classes | def | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,908 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,929 | inline_run | ref | function | reprec = pytester.inline_run()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,930 | assertoutcome | ref | function | reprec.assertoutcome(passed=3)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,933 | TestAutouseManagement | def | class | test_autouse_conftest_mid_directory test_funcarg_and_setup test_uses_parametrized_resource test_session_parametrized_function test_class_function_parametrization_finalization test_scope_ordering test_parametrization_setup_teardown_ordering test_ordering_autouse_before_explicit test_ordering_dependencies_torndown_first |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,934 | test_autouse_conftest_mid_directory | def | function | def test_autouse_conftest_mid_directory(self, pytester: Pytester) -> None:
pkgdir = pytester.mkpydir("xyz123")
pkgdir.joinpath("conftest.py").write_text(
textwrap.dedent(
"""\
import pytest
@pytest.fixture(autouse=_True)
def... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,935 | mkpydir | ref | function | pkgdir = pytester.mkpydir("xyz123")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,960 | inline_run | ref | function | reprec = pytester.inline_run("-s")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,961 | assertoutcome | ref | function | reprec.assertoutcome(passed=1)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,963 | test_funcarg_and_setup | def | function | def test_funcarg_and_setup(self, pytester: Pytester) -> None:
pytester.makepyfile(
"""
import pytest
values = []
@pytest.fixture(scope="module")
def arg():
values.append(1)
return 0
@pytest.fixture(scope=... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,964 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,987 | inline_run | ref | function | reprec = pytester.inline_run()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,988 | assertoutcome | ref | function | reprec.assertoutcome(passed=2)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,990 | test_uses_parametrized_resource | def | function | def test_uses_parametrized_resource(self, pytester: Pytester) -> None:
pytester.makepyfile(
"""
import pytest
values = []
@pytest.fixture(params=[1,2])
def arg(request):
return request.param
@pytest.fixture(autouse=_Tru... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 1,991 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 2,013 | inline_run | ref | function | reprec = pytester.inline_run("-s")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 2,014 | assertoutcome | ref | function | reprec.assertoutcome(passed=2)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 2,016 | test_session_parametrized_function | def | function | def test_session_parametrized_function(self, pytester: Pytester) -> None:
pytester.makepyfile(
"""
import pytest
values = []
@pytest.fixture(scope="session", params=[1,2])
def arg(request):
return request.param
@pytest... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 2,017 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 2,040 | inline_run | ref | function | reprec = pytester.inline_run("-v", "-s")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 2,041 | assertoutcome | ref | function | reprec.assertoutcome(passed=4)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 2,043 | test_class_function_parametrization_finalization | def | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 2,046 | makeconftest | ref | function | p = pytester.makeconftest(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 2,068 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 2,080 | inline_run | ref | function | reprec = pytester.inline_run("-v", "-s", "--confcutdir", pytester.path)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 2,081 | assertoutcome | ref | function | reprec.assertoutcome(passed=8)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 2,082 | getcalls | ref | function | config = reprec.getcalls("pytest_unconfigure")[0].config
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 2,083 | _getconftestmodules | ref | function | values = config.pluginmanager._getconftestmodules(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 2,088 | test_scope_ordering | def | function | def test_scope_ordering(self, pytester: Pytester) -> None:
pytester.makepyfile(
"""
import pytest
values = []
@pytest.fixture(scope="function", autouse=_True)
def fappend2():
values.append(2)
@pytest.fixture(scope="class... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 2,089 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 2,108 | inline_run | ref | function | reprec = pytester.inline_run()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 2,109 | assertoutcome | ref | function | reprec.assertoutcome(passed=1)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 2,111 | test_parametrization_setup_teardown_ordering | def | function | def test_parametrization_setup_teardown_ordering(self, pytester: Pytester) -> None:
pytester.makepyfile(
"""
import pytest
values = []
def pytest_generate_tests(metafunc):
if metafunc.cls is None:
assert metafunc.function is... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 2,112 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 2,137 | inline_run | ref | function | reprec = pytester.inline_run("-s")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 2,138 | assertoutcome | ref | function | reprec.assertoutcome(passed=5)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 2,140 | test_ordering_autouse_before_explicit | def | function | def test_ordering_autouse_before_explicit(self, pytester: Pytester) -> None:
pytester.makepyfile(
"""
import pytest
values = []
@pytest.fixture(autouse=_True)
def fix1():
values.append(1)
@pytest.fixture()
d... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 2,141 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 2,156 | inline_run | ref | function | reprec = pytester.inline_run()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 2,157 | assertoutcome | ref | function | reprec.assertoutcome(passed=1)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.