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 | 3,390 | test_show_fixtures_conftest | def | function | def test_show_fixtures_conftest(self, pytester: Pytester, testmod) -> None:
pytester.makeconftest(
'''
import pytest
@pytest.fixture
def arg1():
""" hello world """
'''
)
if testmod:
pytester.makepyfile(
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,391 | makeconftest | ref | function | pytester.makeconftest(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,400 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,406 | runpytest | ref | function | result = pytester.runpytest("--fixtures")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,407 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,416 | test_show_fixtures_trimmed_doc | def | function | def test_show_fixtures_trimmed_doc(self, pytester: Pytester) -> None:
p = pytester.makepyfile(
textwrap.dedent(
'''\
import pytest
@pytest.fixture
def arg1():
"""
line1
lin... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,417 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,438 | runpytest | ref | function | result = pytester.runpytest("--fixtures", p)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,439 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,453 | test_show_fixtures_indented_doc | def | function | def test_show_fixtures_indented_doc(self, pytester: Pytester) -> None:
p = pytester.makepyfile(
textwrap.dedent(
'''\
import pytest
@pytest.fixture
def fixture1():
"""
line1
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,454 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,467 | runpytest | ref | function | result = pytester.runpytest("--fixtures", p)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,468 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,479 | test_show_fixtures_indented_doc_first_line_unindented | def | function | def test_show_fixtures_indented_doc_first_line_unindented(
self, pytester: Pytester
) -> None:
p = pytester.makepyfile(
textwrap.dedent(
'''\
import pytest
@pytest.fixture
def fixture1():
"""line1
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,482 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,495 | runpytest | ref | function | result = pytester.runpytest("--fixtures", p)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,496 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,508 | test_show_fixtures_indented_in_class | def | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,509 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,523 | runpytest | ref | function | result = pytester.runpytest("--fixtures", p)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,524 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,536 | test_show_fixtures_different_files | def | function | def test_show_fixtures_different_files(self, pytester: Pytester) -> None:
"""`--fixtures` only shows fixtures from first file (#833)."""
pytester.makepyfile(
test_a='''
import pytest
@pytest.fixture
def fix_a():
"""Fixture A"""
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,538 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,551 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,564 | runpytest | ref | function | result = pytester.runpytest("--fixtures")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,565 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,577 | test_show_fixtures_with_same_name | def | function | def test_show_fixtures_with_same_name(self, pytester: Pytester) -> None:
pytester.makeconftest(
'''
import pytest
@pytest.fixture
def arg1():
"""Hello World in conftest.py"""
return "Hello World"
'''
)
py... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,578 | makeconftest | ref | function | pytester.makeconftest(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,587 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,593 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,604 | runpytest | ref | function | result = pytester.runpytest("--fixtures")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,605 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,617 | test_fixture_disallow_twice | def | function | def test_fixture_disallow_twice(self):
"""Test that applying @pytest.fixture twice generates an error (#2334)."""
with pytest.raises(ValueError):
@pytest.fixture
@pytest.fixture
def foo():
raise NotImplementedError()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,619 | raises | ref | function | with pytest.raises(ValueError):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,623 | foo | def | function | def foo():
return 7
"""
)
pytester.syspathinsert()
pytester.makeconftest(
"""
import pytest
pytest_plugins = 'testplugin'
@pytest.fixture
def foo(foo):
return foo + 7
"""
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,627 | TestContextManagerFixtureFuncs | def | class | test_simple test_scoped test_setup_exception test_teardown_exception test_yields_more_than_one test_custom_name |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,628 | test_simple | def | function | def test_simple(self, pytester: Pytester) -> None:
pytester.makepyfile(
"""
import pytest
@pytest.fixture
def arg1():
print("setup")
yield 1
print("teardown")
def test_1(arg1):
print("... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,629 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,644 | runpytest | ref | function | result = pytester.runpytest("-s")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,645 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,656 | test_scoped | def | function | def test_scoped(self, pytester: Pytester) -> None:
pytester.makepyfile(
"""
import pytest
@pytest.fixture(scope="module")
def arg1():
print("setup")
yield 1
print("teardown")
def test_1(arg1):
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,657 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,671 | runpytest | ref | function | result = pytester.runpytest("-s")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,672 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,681 | test_setup_exception | def | function | def test_setup_exception(self, pytester: Pytester) -> None:
pytester.makepyfile(
"""
import pytest
@pytest.fixture(scope="module")
def arg1():
pytest.fail("setup")
yield 1
def test_1(arg1):
pass
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,682 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,693 | runpytest | ref | function | result = pytester.runpytest("-s")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,694 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,701 | test_teardown_exception | def | function | def test_teardown_exception(self, pytester: Pytester) -> None:
pytester.makepyfile(
"""
import pytest
@pytest.fixture(scope="module")
def arg1():
yield 1
pytest.fail("teardown")
def test_1(arg1):
pass... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,702 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,713 | runpytest | ref | function | result = pytester.runpytest("-s")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,714 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,721 | test_yields_more_than_one | def | function | def test_yields_more_than_one(self, pytester: Pytester) -> None:
pytester.makepyfile(
"""
import pytest
@pytest.fixture(scope="module")
def arg1():
yield 1
yield 2
def test_1(arg1):
pass
"""
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,722 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,733 | runpytest | ref | function | result = pytester.runpytest("-s")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,734 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,741 | test_custom_name | def | function | def test_custom_name(self, pytester: Pytester) -> None:
pytester.makepyfile(
"""
import pytest
@pytest.fixture(name='meow')
def arg1():
return 'mew'
def test_1(meow):
print(meow)
"""
)
result ... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,742 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,752 | runpytest | ref | function | result = pytester.runpytest("-s")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,753 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*mew*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,756 | TestParameterizedSubRequest | def | class | test_call_from_fixture test_call_from_test test_external_fixture test_non_relative_path |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,757 | test_call_from_fixture | def | function | def test_call_from_fixture(self, pytester: Pytester) -> None:
pytester.makepyfile(
test_call_from_fixture="""
import pytest
@pytest.fixture(params=[0, 1, 2])
def fix_with_param(request):
return request.param
@pytest.fixture
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,758 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,774 | runpytest | ref | function | result = pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,775 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,787 | test_call_from_test | def | function | def test_call_from_test(self, pytester: Pytester) -> None:
pytester.makepyfile(
test_call_from_test="""
import pytest
@pytest.fixture(params=[0, 1, 2])
def fix_with_param(request):
return request.param
def test_foo(request):
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,788 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,800 | runpytest | ref | function | result = pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,801 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,813 | test_external_fixture | def | function | def test_external_fixture(self, pytester: Pytester) -> None:
pytester.makeconftest(
"""
import pytest
@pytest.fixture(params=[0, 1, 2])
def fix_with_param(request):
return request.param
"""
)
pytester.makepyfile(
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,814 | makeconftest | ref | function | pytester.makeconftest(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,824 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,830 | runpytest | ref | function | result = pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,831 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,844 | test_non_relative_path | def | function | def test_non_relative_path(self, pytester: Pytester) -> None:
tests_dir = pytester.mkdir("tests")
fixdir = pytester.mkdir("fixtures")
fixfile = fixdir.joinpath("fix.py")
fixfile.write_text(
textwrap.dedent(
"""\
import pytest
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,873 | syspathinsert | ref | function | pytester.syspathinsert(fixdir)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,874 | runpytest | ref | function | result = pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,875 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,891 | runpytest | ref | function | result = pytester.runpytest("--rootdir", rootdir, tests_dir)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,892 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,906 | test_pytest_fixture_setup_and_post_finalizer_hook | def | function | def test_pytest_fixture_setup_and_post_finalizer_hook(pytester: Pytester) -> None:
pytester.makeconftest(
"""
def pytest_fixture_setup(fixturedef, request):
print('ROOT setup hook called for {0} from {1}'.format(fixturedef.argname, request.node.name))
def pytest_fixture_post_fina... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,907 | makeconftest | ref | function | pytester.makeconftest(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,915 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,936 | runpytest | ref | function | result = pytester.runpytest("-s")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,938 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,949 | TestScopeOrdering | def | class | test_func_closure_module_auto test_func_closure_with_native_fixtures test_func_closure_module test_func_closure_scopes_reordered test_func_closure_same_scope_closer_root_first test_func_closure_all_scopes_complex test_multiple_packages test_class_fixture_self_instance |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,952 | parametrize | ref | function | @pytest.mark.parametrize("variant", ["mark", "autouse"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,953 | test_func_closure_module_auto | def | function | def test_func_closure_module_auto(
self, pytester: Pytester, variant, monkeypatch
) -> None:
"""Semantically identical to the example posted in #2405 when ``use_mark=_True``"""
monkeypatch.setenv("FIXTURE_ACTIVATION_VARIANT", variant)
pytester.makepyfile(
"""
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,957 | setenv | ref | function | monkeypatch.setenv("FIXTURE_ACTIVATION_VARIANT", variant)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,958 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,984 | inline_genitems | ref | function | items, _ = pytester.inline_genitems()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,985 | FixtureRequest | ref | function | request = FixtureRequest(items[0], _ispytest=True)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,988 | test_func_closure_with_native_fixtures | def | function | def test_func_closure_with_native_fixtures(
self, pytester: Pytester, monkeypatch: MonkeyPatch
) -> None:
"""Sanity check that verifies the order returned by the closures and the actual fixture execution order:
The execution order may differ because of fixture inter-dependencies.
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 3,995 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 4,032 | inline_genitems | ref | function | items, _ = pytester.inline_genitems()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 4,033 | FixtureRequest | ref | function | request = FixtureRequest(items[0], _ispytest=True)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 4,039 | runpytest | ref | function | pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 4,044 | test_func_closure_module | def | function | def test_func_closure_module(self, pytester: Pytester) -> None:
pytester.makepyfile(
"""
import pytest
@pytest.fixture(scope='module')
def m1(): pass
@pytest.fixture(scope='function')
def f1(): pass
def test_func(f1, m1):... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 4,045 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 4,059 | inline_genitems | ref | function | items, _ = pytester.inline_genitems()
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.