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/doc/en/example/assertion/failure_demo.py | doc/en/example/assertion/failure_demo.py | 234 | g | ref | function | assert f().startswith(g())
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/assertion/failure_demo.py | doc/en/example/assertion/failure_demo.py | 236 | test_global_func | def | function | def test_global_func(self):
assert isinstance(globf(42), float)
def test_instance(self):
self.x = 6 * 7
assert self.x != 42
def test_compare(self):
assert globf(10) < 5
def test_try_finally(self):
x = 1
try:
assert x == 0
finally:
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/assertion/failure_demo.py | doc/en/example/assertion/failure_demo.py | 237 | globf | ref | function | assert isinstance(globf(42), float)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/assertion/failure_demo.py | doc/en/example/assertion/failure_demo.py | 239 | test_instance | def | function | def test_instance(self):
self.x = 6 * 7
assert self.x != 42
def test_compare(self):
assert globf(10) < 5
def test_try_finally(self):
x = 1
try:
assert x == 0
finally:
x = 0
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/assertion/failure_demo.py | doc/en/example/assertion/failure_demo.py | 243 | test_compare | def | function | def test_compare(self):
assert globf(10) < 5
def test_try_finally(self):
x = 1
try:
assert x == 0
finally:
x = 0
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/assertion/failure_demo.py | doc/en/example/assertion/failure_demo.py | 244 | globf | ref | function | assert globf(10) < 5
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/assertion/failure_demo.py | doc/en/example/assertion/failure_demo.py | 246 | test_try_finally | def | function | def test_try_finally(self):
x = 1
try:
assert x == 0
finally:
x = 0
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/assertion/failure_demo.py | doc/en/example/assertion/failure_demo.py | 254 | TestCustomAssertMsg | def | class | test_single_line test_multiline test_custom_repr |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/assertion/failure_demo.py | doc/en/example/assertion/failure_demo.py | 255 | test_single_line | def | function | def test_single_line(self):
class A:
a = 1
b = 2
assert A.a == b, "A.a appears not to be b"
def test_multiline(self):
class A:
a = 1
b = 2
assert (
A.a == b
), "A.a appears not to be b\nor does not appear to be b\none... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/assertion/failure_demo.py | doc/en/example/assertion/failure_demo.py | 256 | A | def | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/assertion/failure_demo.py | doc/en/example/assertion/failure_demo.py | 262 | test_multiline | def | function | def test_multiline(self):
class A:
a = 1
b = 2
assert (
A.a == b
), "A.a appears not to be b\nor does not appear to be b\none of those"
def test_custom_repr(self):
class JSON:
a = 1
def __repr__(self):
ret... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/assertion/failure_demo.py | doc/en/example/assertion/failure_demo.py | 263 | A | def | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/assertion/failure_demo.py | doc/en/example/assertion/failure_demo.py | 271 | test_custom_repr | def | function | def test_custom_repr(self):
class JSON:
a = 1
def __repr__(self):
return "This is JSON\n{\n 'foo': 'bar'\n}"
a = JSON()
b = 2
assert a.a == b, a
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/assertion/failure_demo.py | doc/en/example/assertion/failure_demo.py | 272 | JSON | def | class | __repr__ |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/assertion/failure_demo.py | doc/en/example/assertion/failure_demo.py | 278 | JSON | ref | function | a = JSON()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/assertion/global_testmodule_config/conftest.py | doc/en/example/assertion/global_testmodule_config/conftest.py | 7 | pytest_runtest_setup | def | function | def pytest_runtest_setup(item):
if isinstance(item, pytest.Function):
if not item.fspath.relto(mydir):
return
mod = item.getparent(pytest.Module).obj
if hasattr(mod, "hello"):
print(f"mod.hello {mod.hello!r}")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/assertion/global_testmodule_config/conftest.py | doc/en/example/assertion/global_testmodule_config/conftest.py | 9 | relto | ref | function | if not item.fspath.relto(mydir):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/assertion/global_testmodule_config/conftest.py | doc/en/example/assertion/global_testmodule_config/conftest.py | 11 | getparent | ref | function | mod = item.getparent(pytest.Module).obj
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/assertion/global_testmodule_config/test_hello_world.py | doc/en/example/assertion/global_testmodule_config/test_hello_world.py | 3 | test_func | def | function | def test_func():
pass
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/assertion/global_testmodule_config/test_hello_world.py | doc/en/example/assertion/global_testmodule_config/test_hello_world.py | -1 | hello | ref | function | none |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/assertion/global_testmodule_config/test_hello_world.py | doc/en/example/assertion/global_testmodule_config/test_hello_world.py | -1 | test_func | ref | function | none |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/assertion/test_failures.py | doc/en/example/assertion/test_failures.py | 7 | test_failure_demo_fails_properly | def | function | def test_failure_demo_fails_properly(pytester):
target = pytester.path.joinpath(os.path.basename(failure_demo))
shutil.copy(failure_demo, target)
result = pytester.runpytest(target, syspathinsert=_True)
result.stdout.fnmatch_lines(["*44 failed*"])
assert result.ret != 0
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/assertion/test_failures.py | doc/en/example/assertion/test_failures.py | 8 | joinpath | ref | function | target = pytester.path.joinpath(os.path.basename(failure_demo))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/assertion/test_failures.py | doc/en/example/assertion/test_failures.py | 10 | runpytest | ref | function | result = pytester.runpytest(target, syspathinsert=True)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/assertion/test_failures.py | doc/en/example/assertion/test_failures.py | 11 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*44 failed*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/assertion/test_setup_flow_example.py | doc/en/example/assertion/test_setup_flow_example.py | 0 | setup_module | def | function | def setup_module(module):
module.TestStateFullThing.classcount = 0
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/assertion/test_setup_flow_example.py | doc/en/example/assertion/test_setup_flow_example.py | 4 | TestStateFullThing | def | class | setup_class teardown_class setup_method test_42 test_23 |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/assertion/test_setup_flow_example.py | doc/en/example/assertion/test_setup_flow_example.py | 5 | setup_class | def | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/assertion/test_setup_flow_example.py | doc/en/example/assertion/test_setup_flow_example.py | 8 | teardown_class | def | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/assertion/test_setup_flow_example.py | doc/en/example/assertion/test_setup_flow_example.py | 11 | setup_method | def | function | def setup_method(self, method):
self.id = eval(method.__name__[5:])
def test_42(self):
assert self.classcount == 1
assert self.id == 42
def test_23(self):
assert self.classcount == 1
assert self.id == 23
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/assertion/test_setup_flow_example.py | doc/en/example/assertion/test_setup_flow_example.py | 14 | test_42 | def | function | def test_42(self):
assert self.classcount == 1
assert self.id == 42
def test_23(self):
assert self.classcount == 1
assert self.id == 23
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/assertion/test_setup_flow_example.py | doc/en/example/assertion/test_setup_flow_example.py | 18 | test_23 | def | function | def test_23(self):
assert self.classcount == 1
assert self.id == 23
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/assertion/test_setup_flow_example.py | doc/en/example/assertion/test_setup_flow_example.py | 23 | teardown_module | def | function | def teardown_module(module):
assert module.TestStateFullThing.classcount == 0
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_autouse.py | doc/en/example/fixtures/test_fixtures_order_autouse.py | 4 | order | def | function | def order():
return []
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_autouse.py | doc/en/example/fixtures/test_fixtures_order_autouse.py | 9 | a | def | function | def a(order):
order.append("a")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_autouse.py | doc/en/example/fixtures/test_fixtures_order_autouse.py | 14 | b | def | function | def b(a, order):
order.append("b")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_autouse.py | doc/en/example/fixtures/test_fixtures_order_autouse.py | 18 | fixture | ref | function | @pytest.fixture(autouse=True)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_autouse.py | doc/en/example/fixtures/test_fixtures_order_autouse.py | 19 | c | def | function | def c(b, order):
order.append("c")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_autouse.py | doc/en/example/fixtures/test_fixtures_order_autouse.py | 24 | d | def | function | def d(b, order):
order.append("d")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_autouse.py | doc/en/example/fixtures/test_fixtures_order_autouse.py | 29 | e | def | function | def e(d, order):
order.append("e")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_autouse.py | doc/en/example/fixtures/test_fixtures_order_autouse.py | 34 | f | def | function | def f(e, order):
order.append("f")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_autouse.py | doc/en/example/fixtures/test_fixtures_order_autouse.py | 39 | g | def | function | def g(f, c, order):
order.append("g")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_autouse.py | doc/en/example/fixtures/test_fixtures_order_autouse.py | 43 | test_order_and_g | def | function | def test_order_and_g(g, order):
assert order == ["a", "b", "c", "d", "e", "f", "g"]
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_autouse_multiple_scopes.py | doc/en/example/fixtures/test_fixtures_order_autouse_multiple_scopes.py | 3 | fixture | ref | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_autouse_multiple_scopes.py | doc/en/example/fixtures/test_fixtures_order_autouse_multiple_scopes.py | 4 | order | def | function | def order():
return []
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_autouse_multiple_scopes.py | doc/en/example/fixtures/test_fixtures_order_autouse_multiple_scopes.py | 8 | fixture | ref | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_autouse_multiple_scopes.py | doc/en/example/fixtures/test_fixtures_order_autouse_multiple_scopes.py | 9 | c1 | def | function | def c1(order):
order.append("c1")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_autouse_multiple_scopes.py | doc/en/example/fixtures/test_fixtures_order_autouse_multiple_scopes.py | 13 | fixture | ref | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_autouse_multiple_scopes.py | doc/en/example/fixtures/test_fixtures_order_autouse_multiple_scopes.py | 14 | c2 | def | function | def c2(order):
order.append("c2")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_autouse_multiple_scopes.py | doc/en/example/fixtures/test_fixtures_order_autouse_multiple_scopes.py | 18 | fixture | ref | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_autouse_multiple_scopes.py | doc/en/example/fixtures/test_fixtures_order_autouse_multiple_scopes.py | 19 | c3 | def | function | def c3(order, c1):
order.append("c3")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_autouse_multiple_scopes.py | doc/en/example/fixtures/test_fixtures_order_autouse_multiple_scopes.py | 23 | TestClassWithC1Request | def | class | test_order |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_autouse_multiple_scopes.py | doc/en/example/fixtures/test_fixtures_order_autouse_multiple_scopes.py | 24 | test_order | def | function | def test_order(self, order, c1, c3):
assert order == ["c1", "c3"]
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_autouse_multiple_scopes.py | doc/en/example/fixtures/test_fixtures_order_autouse_multiple_scopes.py | 28 | TestClassWithoutC1Request | def | class | test_order |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_autouse_multiple_scopes.py | doc/en/example/fixtures/test_fixtures_order_autouse_multiple_scopes.py | 29 | test_order | def | function | def test_order(self, order, c2):
assert order == ["c1", "c2"]
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_autouse_temp_effects.py | doc/en/example/fixtures/test_fixtures_order_autouse_temp_effects.py | 4 | order | def | function | def order():
return []
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_autouse_temp_effects.py | doc/en/example/fixtures/test_fixtures_order_autouse_temp_effects.py | 9 | c1 | def | function | def c1(order):
order.append("c1")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_autouse_temp_effects.py | doc/en/example/fixtures/test_fixtures_order_autouse_temp_effects.py | 14 | c2 | def | function | def c2(order):
order.append("c2")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_autouse_temp_effects.py | doc/en/example/fixtures/test_fixtures_order_autouse_temp_effects.py | 18 | TestClassWithAutouse | def | class | c3 test_req test_no_req |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_autouse_temp_effects.py | doc/en/example/fixtures/test_fixtures_order_autouse_temp_effects.py | 19 | fixture | ref | function | @pytest.fixture(autouse=True)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_autouse_temp_effects.py | doc/en/example/fixtures/test_fixtures_order_autouse_temp_effects.py | 20 | c3 | def | function | def c3(self, order, c2):
order.append("c3")
def test_req(self, order, c1):
assert order == ["c2", "c3", "c1"]
def test_no_req(self, order):
assert order == ["c2", "c3"]
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_autouse_temp_effects.py | doc/en/example/fixtures/test_fixtures_order_autouse_temp_effects.py | 23 | test_req | def | function | def test_req(self, order, c1):
assert order == ["c2", "c3", "c1"]
def test_no_req(self, order):
assert order == ["c2", "c3"]
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_autouse_temp_effects.py | doc/en/example/fixtures/test_fixtures_order_autouse_temp_effects.py | 26 | test_no_req | def | function | def test_no_req(self, order):
assert order == ["c2", "c3"]
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_autouse_temp_effects.py | doc/en/example/fixtures/test_fixtures_order_autouse_temp_effects.py | 30 | TestClassWithoutAutouse | def | class | test_req test_no_req |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_autouse_temp_effects.py | doc/en/example/fixtures/test_fixtures_order_autouse_temp_effects.py | 31 | test_req | def | function | def test_req(self, order, c1):
assert order == ["c2", "c3", "c1"]
def test_no_req(self, order):
assert order == ["c2", "c3"]
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_autouse_temp_effects.py | doc/en/example/fixtures/test_fixtures_order_autouse_temp_effects.py | 34 | test_no_req | def | function | def test_no_req(self, order):
assert order == ["c2", "c3"]
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_dependencies.py | doc/en/example/fixtures/test_fixtures_order_dependencies.py | 4 | order | def | function | def order():
return []
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_dependencies.py | doc/en/example/fixtures/test_fixtures_order_dependencies.py | 9 | a | def | function | def a(order):
order.append("a")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_dependencies.py | doc/en/example/fixtures/test_fixtures_order_dependencies.py | 14 | b | def | function | def b(a, order):
order.append("b")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_dependencies.py | doc/en/example/fixtures/test_fixtures_order_dependencies.py | 19 | c | def | function | def c(a, b, order):
order.append("c")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_dependencies.py | doc/en/example/fixtures/test_fixtures_order_dependencies.py | 24 | d | def | function | def d(c, b, order):
order.append("d")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_dependencies.py | doc/en/example/fixtures/test_fixtures_order_dependencies.py | 29 | e | def | function | def e(d, b, order):
order.append("e")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_dependencies.py | doc/en/example/fixtures/test_fixtures_order_dependencies.py | 34 | f | def | function | def f(e, order):
order.append("f")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_dependencies.py | doc/en/example/fixtures/test_fixtures_order_dependencies.py | 39 | g | def | function | def g(f, c, order):
order.append("g")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_dependencies.py | doc/en/example/fixtures/test_fixtures_order_dependencies.py | 43 | test_order | def | function | def test_order(g, order):
assert order == ["a", "b", "c", "d", "e", "f", "g"]
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_scope.py | doc/en/example/fixtures/test_fixtures_order_scope.py | 3 | fixture | ref | function | @pytest.fixture(scope="session")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_scope.py | doc/en/example/fixtures/test_fixtures_order_scope.py | 4 | order | def | function | def order():
return []
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_scope.py | doc/en/example/fixtures/test_fixtures_order_scope.py | 9 | func | def | function | def func(order):
order.append("function")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_scope.py | doc/en/example/fixtures/test_fixtures_order_scope.py | 13 | fixture | ref | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_scope.py | doc/en/example/fixtures/test_fixtures_order_scope.py | 14 | cls | def | function | def cls(order):
order.append("class")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_scope.py | doc/en/example/fixtures/test_fixtures_order_scope.py | 18 | fixture | ref | function | @pytest.fixture(scope="module")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_scope.py | doc/en/example/fixtures/test_fixtures_order_scope.py | 19 | mod | def | function | def mod(order):
order.append("module")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_scope.py | doc/en/example/fixtures/test_fixtures_order_scope.py | 23 | fixture | ref | function | @pytest.fixture(scope="package")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_scope.py | doc/en/example/fixtures/test_fixtures_order_scope.py | 24 | pack | def | function | def pack(order):
order.append("package")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_scope.py | doc/en/example/fixtures/test_fixtures_order_scope.py | 28 | fixture | ref | function | @pytest.fixture(scope="session")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_scope.py | doc/en/example/fixtures/test_fixtures_order_scope.py | 29 | sess | def | function | def sess(order):
order.append("session")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_scope.py | doc/en/example/fixtures/test_fixtures_order_scope.py | 33 | TestClass | def | class | test_order |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_order_scope.py | doc/en/example/fixtures/test_fixtures_order_scope.py | 34 | test_order | def | function | def test_order(self, func, cls, mod, pack, sess, order):
assert order == ["session", "package", "module", "class", "function"]
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_request_different_scope.py | doc/en/example/fixtures/test_fixtures_request_different_scope.py | 4 | order | def | function | def order():
return []
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_request_different_scope.py | doc/en/example/fixtures/test_fixtures_request_different_scope.py | 9 | outer | def | function | def outer(order, inner):
order.append("outer")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_request_different_scope.py | doc/en/example/fixtures/test_fixtures_request_different_scope.py | 13 | TestOne | def | class | inner test_order |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_request_different_scope.py | doc/en/example/fixtures/test_fixtures_request_different_scope.py | 15 | inner | def | function | def inner(self, order):
order.append("one")
def test_order(self, order, outer):
assert order == ["one", "outer"]
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_request_different_scope.py | doc/en/example/fixtures/test_fixtures_request_different_scope.py | 18 | test_order | def | function | def test_order(self, order, outer):
assert order == ["one", "outer"]
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_request_different_scope.py | doc/en/example/fixtures/test_fixtures_request_different_scope.py | 22 | TestTwo | def | class | inner test_order |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_request_different_scope.py | doc/en/example/fixtures/test_fixtures_request_different_scope.py | 24 | inner | def | function | def inner(self, order):
order.append("one")
def test_order(self, order, outer):
assert order == ["one", "outer"]
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/fixtures/test_fixtures_request_different_scope.py | doc/en/example/fixtures/test_fixtures_request_different_scope.py | 27 | test_order | def | function | def test_order(self, order, outer):
assert order == ["one", "outer"]
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/multipython.py | doc/en/example/multipython.py | 13 | fixture | ref | function | @pytest.fixture(params=pythonlist)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/multipython.py | doc/en/example/multipython.py | 14 | python1 | def | function | def python1(request, tmp_path):
picklefile = tmp_path / "data.pickle"
return Python(request.param, picklefile)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/multipython.py | doc/en/example/multipython.py | 16 | Python | ref | function | return Python(request.param, picklefile)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/doc/en/example/multipython.py | doc/en/example/multipython.py | 19 | fixture | ref | function | @pytest.fixture(params=pythonlist)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.