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/test_setuponly.py | testing/test_setuponly.py | 8 | mode | def | function | def mode(request):
return request.param
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py | testing/test_setuponly.py | 12 | test_show_only_active_fixtures | def | function | def test_show_only_active_fixtures(
pytester: Pytester, mode, dummy_yaml_custom_test
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py | testing/test_setuponly.py | 15 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py | testing/test_setuponly.py | 29 | runpytest | ref | function | result = pytester.runpytest(mode)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py | testing/test_setuponly.py | 32 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py | testing/test_setuponly.py | 35 | no_fnmatch_line | ref | function | result.stdout.no_fnmatch_line("*_arg0*")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py | testing/test_setuponly.py | 38 | test_show_different_scopes | def | function | def test_show_different_scopes(pytester: Pytester, mode) -> None:
p = pytester.makepyfile(
'''
import pytest
@pytest.fixture
def arg_function():
"""function scoped fixture"""
@pytest.fixture(scope='session')
def arg_session():
"""session scoped... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py | testing/test_setuponly.py | 39 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py | testing/test_setuponly.py | 53 | runpytest | ref | function | result = pytester.runpytest(mode, p)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py | testing/test_setuponly.py | 56 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py | testing/test_setuponly.py | 67 | test_show_nested_fixtures | def | function | def test_show_nested_fixtures(pytester: Pytester, mode) -> None:
pytester.makeconftest(
'''
import pytest
@pytest.fixture(scope='session')
def arg_same():
"""session scoped fixture"""
'''
)
p = pytester.makepyfile(
'''
import pytest
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py | testing/test_setuponly.py | 68 | makeconftest | ref | function | pytester.makeconftest(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py | testing/test_setuponly.py | 76 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py | testing/test_setuponly.py | 87 | runpytest | ref | function | result = pytester.runpytest(mode, p)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py | testing/test_setuponly.py | 90 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py | testing/test_setuponly.py | 101 | test_show_fixtures_with_autouse | def | function | def test_show_fixtures_with_autouse(pytester: Pytester, mode) -> None:
p = pytester.makepyfile(
'''
import pytest
@pytest.fixture
def arg_function():
"""function scoped fixture"""
@pytest.fixture(scope='session', autouse=_True)
def arg_session():
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py | testing/test_setuponly.py | 102 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py | testing/test_setuponly.py | 116 | runpytest | ref | function | result = pytester.runpytest(mode, p)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py | testing/test_setuponly.py | 119 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py | testing/test_setuponly.py | 128 | test_show_fixtures_with_parameters | def | function | def test_show_fixtures_with_parameters(pytester: Pytester, mode) -> None:
pytester.makeconftest(
'''
import pytest
@pytest.fixture(scope='session', params=['foo', 'bar'])
def arg_same():
"""session scoped fixture"""
'''
)
p = pytester.makepyfile(
'... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py | testing/test_setuponly.py | 129 | makeconftest | ref | function | pytester.makeconftest(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py | testing/test_setuponly.py | 137 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py | testing/test_setuponly.py | 148 | runpytest | ref | function | result = pytester.runpytest(mode, p)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py | testing/test_setuponly.py | 151 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py | testing/test_setuponly.py | 161 | test_show_fixtures_with_parameter_ids | def | function | def test_show_fixtures_with_parameter_ids(pytester: Pytester, mode) -> None:
pytester.makeconftest(
'''
import pytest
@pytest.fixture(
scope='session', params=['foo', 'bar'], ids=['spam', 'ham'])
def arg_same():
"""session scoped fixture"""
'''
)
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py | testing/test_setuponly.py | 162 | makeconftest | ref | function | pytester.makeconftest(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py | testing/test_setuponly.py | 171 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py | testing/test_setuponly.py | 182 | runpytest | ref | function | result = pytester.runpytest(mode, p)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py | testing/test_setuponly.py | 185 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py | testing/test_setuponly.py | 190 | test_show_fixtures_with_parameter_ids_function | def | function | def test_show_fixtures_with_parameter_ids_function(pytester: Pytester, mode) -> None:
p = pytester.makepyfile(
"""
import pytest
@pytest.fixture(params=['foo', 'bar'], ids=lambda p: p.upper())
def foobar():
pass
def test_foobar(foobar):
pass
"""
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py | testing/test_setuponly.py | 191 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py | testing/test_setuponly.py | 202 | runpytest | ref | function | result = pytester.runpytest(mode, p)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py | testing/test_setuponly.py | 205 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py | testing/test_setuponly.py | 210 | test_dynamic_fixture_request | def | function | def test_dynamic_fixture_request(pytester: Pytester) -> None:
p = pytester.makepyfile(
"""
import pytest
@pytest.fixture()
def dynamically_requested_fixture():
pass
@pytest.fixture()
def dependent_fixture(request):
request.getfixturevalue('dyna... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py | testing/test_setuponly.py | 211 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py | testing/test_setuponly.py | 225 | runpytest | ref | function | result = pytester.runpytest("--setup-only", p)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py | testing/test_setuponly.py | 228 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py | testing/test_setuponly.py | 236 | test_capturing | def | function | def test_capturing(pytester: Pytester) -> None:
p = pytester.makepyfile(
"""
import pytest, sys
@pytest.fixture()
def one():
sys.stdout.write('this should be captured')
sys.stderr.write('this should also be captured')
@pytest.fixture()
def two(... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py | testing/test_setuponly.py | 237 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py | testing/test_setuponly.py | 252 | runpytest | ref | function | result = pytester.runpytest("--setup-only", p)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py | testing/test_setuponly.py | 253 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py | testing/test_setuponly.py | 258 | test_show_fixtures_and_execute_test | def | function | def test_show_fixtures_and_execute_test(pytester: Pytester) -> None:
"""Verify that setups are shown and tests are executed."""
p = pytester.makepyfile(
"""
import pytest
@pytest.fixture
def arg():
assert _True
def test_arg(arg):
assert _False
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py | testing/test_setuponly.py | 260 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py | testing/test_setuponly.py | 271 | runpytest | ref | function | result = pytester.runpytest("--setup-show", p)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py | testing/test_setuponly.py | 274 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py | testing/test_setuponly.py | 279 | test_setup_show_with_KeyboardInterrupt_in_test | def | function | def test_setup_show_with_KeyboardInterrupt_in_test(pytester: Pytester) -> None:
p = pytester.makepyfile(
"""
import pytest
@pytest.fixture
def arg():
pass
def test_arg(arg):
raise KeyboardInterrupt()
"""
)
result = pytester.runpytest("--set... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py | testing/test_setuponly.py | 280 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py | testing/test_setuponly.py | 290 | runpytest | ref | function | result = pytester.runpytest("--setup-show", p, no_reraise_ctrlc=True)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py | testing/test_setuponly.py | 291 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py | testing/test_setuponly.py | 303 | test_show_fixture_action_with_bytes | def | function | def test_show_fixture_action_with_bytes(pytester: Pytester) -> None:
# Issue 7126, BytesWarning when using --setup-show with bytes parameter
test_file = pytester.makepyfile(
"""
import pytest
@pytest.mark.parametrize('data', [b'Hello World'])
def test_data(data):
pas... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py | testing/test_setuponly.py | 305 | makepyfile | ref | function | test_file = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py | testing/test_setuponly.py | 314 | run | ref | function | result = pytester.run(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setupplan.py | testing/test_setupplan.py | 3 | test_show_fixtures_and_test | def | function | def test_show_fixtures_and_test(
pytester: Pytester, dummy_yaml_custom_test: None
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setupplan.py | testing/test_setupplan.py | 7 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setupplan.py | testing/test_setupplan.py | 18 | runpytest | ref | function | result = pytester.runpytest("--setup-plan")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setupplan.py | testing/test_setupplan.py | 21 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setupplan.py | testing/test_setupplan.py | 26 | test_show_multi_test_fixture_setup_and_teardown_correctly_simple | def | function | def test_show_multi_test_fixture_setup_and_teardown_correctly_simple(
pytester: Pytester,
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setupplan.py | testing/test_setupplan.py | 40 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setupplan.py | testing/test_setupplan.py | 54 | runpytest | ref | function | result = pytester.runpytest("--setup-plan")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setupplan.py | testing/test_setupplan.py | 75 | test_show_multi_test_fixture_setup_and_teardown_same_as_setup_show | def | function | def test_show_multi_test_fixture_setup_and_teardown_same_as_setup_show(
pytester: Pytester,
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setupplan.py | testing/test_setupplan.py | 79 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setupplan.py | testing/test_setupplan.py | 104 | runpytest | ref | function | plan_result = pytester.runpytest("--setup-plan")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setupplan.py | testing/test_setupplan.py | 105 | runpytest | ref | function | show_result = pytester.runpytest("--setup-show")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 11 | TestEvaluation | def | class | test_no_marker test_marked_xfail_no_args test_marked_skipif_no_args test_marked_one_arg test_marked_one_arg_with_reason test_marked_one_arg_twice test_marked_one_arg_twice2 test_marked_skipif_with_boolean_without_reason test_marked_skipif_with_invalid_boolean test_skipif_class test_skipif_markeval_namespace test_skipif... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 12 | test_no_marker | def | function | def test_no_marker(self, pytester: Pytester) -> None:
item = pytester.getitem("def test_func(): pass")
skipped = evaluate_skip_marks(item)
assert not skipped
def test_marked_xfail_no_args(self, pytester: Pytester) -> None:
item = pytester.getitem(
"""
imp... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 13 | getitem | ref | function | item = pytester.getitem("def test_func(): pass")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 14 | evaluate_skip_marks | ref | function | skipped = evaluate_skip_marks(item)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 17 | test_marked_xfail_no_args | def | function | def test_marked_xfail_no_args(self, pytester: Pytester) -> None:
item = pytester.getitem(
"""
import pytest
@pytest.mark.xfail
def test_func():
pass
"""
)
xfailed = evaluate_xfail_marks(item)
assert xfailed
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 18 | getitem | ref | function | item = pytester.getitem(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 26 | evaluate_xfail_marks | ref | function | xfailed = evaluate_xfail_marks(item)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 31 | test_marked_skipif_no_args | def | function | def test_marked_skipif_no_args(self, pytester: Pytester) -> None:
item = pytester.getitem(
"""
import pytest
@pytest.mark.skipif
def test_func():
pass
"""
)
skipped = evaluate_skip_marks(item)
assert skipped
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 32 | getitem | ref | function | item = pytester.getitem(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 40 | evaluate_skip_marks | ref | function | skipped = evaluate_skip_marks(item)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 44 | test_marked_one_arg | def | function | def test_marked_one_arg(self, pytester: Pytester) -> None:
item = pytester.getitem(
"""
import pytest
@pytest.mark.skipif("hasattr(os, 'sep')")
def test_func():
pass
"""
)
skipped = evaluate_skip_marks(item)
asse... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 45 | getitem | ref | function | item = pytester.getitem(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 53 | evaluate_skip_marks | ref | function | skipped = evaluate_skip_marks(item)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 57 | test_marked_one_arg_with_reason | def | function | def test_marked_one_arg_with_reason(self, pytester: Pytester) -> None:
item = pytester.getitem(
"""
import pytest
@pytest.mark.skipif("hasattr(os, 'sep')", attr=2, reason="hello world")
def test_func():
pass
"""
)
skippe... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 58 | getitem | ref | function | item = pytester.getitem(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 66 | evaluate_skip_marks | ref | function | skipped = evaluate_skip_marks(item)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 70 | test_marked_one_arg_twice | def | function | def test_marked_one_arg_twice(self, pytester: Pytester) -> None:
lines = [
"""@pytest.mark.skipif("not hasattr(os, 'murks')")""",
"""@pytest.mark.skipif(condition="hasattr(os, 'murks')")""",
]
for i in range(0, 2):
item = pytester.getitem(
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 76 | getitem | ref | function | item = pytester.getitem(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 86 | evaluate_skip_marks | ref | function | skipped = evaluate_skip_marks(item)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 90 | test_marked_one_arg_twice2 | def | function | def test_marked_one_arg_twice2(self, pytester: Pytester) -> None:
item = pytester.getitem(
"""
import pytest
@pytest.mark.skipif("hasattr(os, 'murks')")
@pytest.mark.skipif("not hasattr(os, 'murks')")
def test_func():
pass
"... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 91 | getitem | ref | function | item = pytester.getitem(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 100 | evaluate_skip_marks | ref | function | skipped = evaluate_skip_marks(item)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 104 | test_marked_skipif_with_boolean_without_reason | def | function | def test_marked_skipif_with_boolean_without_reason(
self, pytester: Pytester
) -> None:
item = pytester.getitem(
"""
import pytest
@pytest.mark.skipif(_False)
def test_func():
pass
"""
)
with pytest.raises(py... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 107 | getitem | ref | function | item = pytester.getitem(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 115 | raises | ref | function | with pytest.raises(pytest.fail.Exception) as excinfo:
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 116 | evaluate_skip_marks | ref | function | evaluate_skip_marks(item)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 123 | test_marked_skipif_with_invalid_boolean | def | function | def test_marked_skipif_with_invalid_boolean(self, pytester: Pytester) -> None:
item = pytester.getitem(
"""
import pytest
class InvalidBool:
def __bool__(self):
raise TypeError("INVALID")
@pytest.mark.skipif(InvalidBool(),... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 124 | getitem | ref | function | item = pytester.getitem(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 137 | raises | ref | function | with pytest.raises(pytest.fail.Exception) as excinfo:
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 138 | evaluate_skip_marks | ref | function | evaluate_skip_marks(item)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 143 | test_skipif_class | def | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 144 | getitems | ref | function | (item,) = pytester.getitems(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 154 | evaluate_skip_marks | ref | function | skipped = evaluate_skip_marks(item)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 158 | test_skipif_markeval_namespace | def | function | def test_skipif_markeval_namespace(self, pytester: Pytester) -> None:
pytester.makeconftest(
"""
import pytest
def pytest_markeval_namespace():
return {"color": "green"}
"""
)
p = pytester.makepyfile(
"""
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 159 | makeconftest | ref | function | pytester.makeconftest(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 167 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_skipping.py | testing/test_skipping.py | 180 | runpytest | ref | function | res = pytester.runpytest(p)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.