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/metafunc.py
testing/python/metafunc.py
378
param
ref
function
("a", "b"), [pytest.param("string", 1.0), pytest.param("st-ring", 2.0)]
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
382
idmaker
ref
function
result = idmaker(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
383
param
ref
function
("a", "b"), [pytest.param(object(), 1.0), pytest.param(object(), object())]
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
383
param
ref
function
("a", "b"), [pytest.param(object(), 1.0), pytest.param(object(), object())]
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
387
idmaker
ref
function
result = idmaker(("a", "b"), [pytest.param({}, b"\xc3\xb4")])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
387
param
ref
function
result = idmaker(("a", "b"), [pytest.param({}, b"\xc3\xb4")])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
390
test_idmaker_with_bytes_regex
def
function
def test_idmaker_with_bytes_regex(self) -> None: result = idmaker(("a"), [pytest.param(re.compile(b"foo"), 1.0)]) assert result == ["foo"] def test_idmaker_native_strings(self) -> None: result = idmaker( ("a", "b"), [ pytest.param(1.0, -1.1), ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
391
idmaker
ref
function
result = idmaker(("a"), [pytest.param(re.compile(b"foo"), 1.0)])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
391
param
ref
function
result = idmaker(("a"), [pytest.param(re.compile(b"foo"), 1.0)])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
394
test_idmaker_native_strings
def
function
def test_idmaker_native_strings(self) -> None: result = idmaker( ("a", "b"), [ pytest.param(1.0, -1.1), pytest.param(2, -202), pytest.param("three", "three hundred"), pytest.param(_True, _False), pytest.p...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
395
idmaker
ref
function
result = idmaker(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
398
param
ref
function
pytest.param(1.0, -1.1),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
399
param
ref
function
pytest.param(2, -202),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
400
param
ref
function
pytest.param("three", "three hundred"),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
401
param
ref
function
pytest.param(True, False),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
402
param
ref
function
pytest.param(None, None),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
403
param
ref
function
pytest.param(re.compile("foo"), re.compile("bar")),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
404
param
ref
function
pytest.param(str, int),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
405
param
ref
function
pytest.param(list("six"), [66, 66]),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
406
param
ref
function
pytest.param({7}, set("seven")),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
407
param
ref
function
pytest.param(tuple("eight"), (8, -8, 8)),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
408
param
ref
function
pytest.param(b"\xc3\xb4", b"name"),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
409
param
ref
function
pytest.param(b"\xc3\xb4", "other"),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
410
param
ref
function
pytest.param(1.0j, -2.0j),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
429
test_idmaker_non_printable_characters
def
function
def test_idmaker_non_printable_characters(self) -> None: result = idmaker( ("s", "n"), [ pytest.param("\x00", 1), pytest.param("\x05", 2), pytest.param(b"\x00", 3), pytest.param(b"\x05", 4), pytest.param(...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
430
idmaker
ref
function
result = idmaker(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
433
param
ref
function
pytest.param("\x00", 1),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
434
param
ref
function
pytest.param("\x05", 2),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
435
param
ref
function
pytest.param(b"\x00", 3),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
436
param
ref
function
pytest.param(b"\x05", 4),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
437
param
ref
function
pytest.param("\t", 5),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
438
param
ref
function
pytest.param(b"\t", 6),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
443
test_idmaker_manual_ids_must_be_printable
def
function
def test_idmaker_manual_ids_must_be_printable(self) -> None: result = idmaker( ("s",), [ pytest.param("x00", id="hello \x00"), pytest.param("x05", id="hello \x05"), ], ) assert result == ["hello \\x00", "hello \\x05"] d...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
444
idmaker
ref
function
result = idmaker(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
447
param
ref
function
pytest.param("x00", id="hello \x00"),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
448
param
ref
function
pytest.param("x05", id="hello \x05"),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
453
test_idmaker_enum
def
function
def test_idmaker_enum(self) -> None: enum = pytest.importorskip("enum") e = enum.Enum("Foo", "one, two") result = idmaker(("a", "b"), [pytest.param(e.one, e.two)]) assert result == ["Foo.one-Foo.two"] def test_idmaker_idfn(self) -> None: """#351""" def ids(val: ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
454
importorskip
ref
function
enum = pytest.importorskip("enum")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
455
Enum
ref
function
e = enum.Enum("Foo", "one, two")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
456
idmaker
ref
function
result = idmaker(("a", "b"), [pytest.param(e.one, e.two)])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
456
param
ref
function
result = idmaker(("a", "b"), [pytest.param(e.one, e.two)])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
459
test_idmaker_idfn
def
function
def test_idmaker_idfn(self) -> None: """#351""" def ids(val: object) -> Optional[str]: if isinstance(val, Exception): return repr(val) return None result = idmaker( ("a", "b"), [ pytest.param(10.0, IndexError()...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
462
ids
def
function
def ids(val: object) -> Optional[str]: if isinstance(val, Exception): return repr(val) return None result = idmaker( ("a", "b"), [ pytest.param(10.0, IndexError()), pytest.param(20, KeyError()), ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
467
idmaker
ref
function
result = idmaker(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
470
param
ref
function
pytest.param(10.0, IndexError()),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
471
param
ref
function
pytest.param(20, KeyError()),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
472
param
ref
function
pytest.param("three", [1, 2, 3]),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
478
test_idmaker_idfn_unique_names
def
function
def test_idmaker_idfn_unique_names(self) -> None: """#351""" def ids(val: object) -> str: return "a" result = idmaker( ("a", "b"), [ pytest.param(10.0, IndexError()), pytest.param(20, KeyError()), pytest.pa...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
481
ids
def
function
def ids(val: object) -> str: return "a" result = idmaker( ("a", "b"), [ pytest.param(10.0, IndexError()), pytest.param(20, KeyError()), pytest.param("three", [1, 2, 3]), ], idfn=ids, ) ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
484
idmaker
ref
function
result = idmaker(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
487
param
ref
function
pytest.param(10.0, IndexError()),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
488
param
ref
function
pytest.param(20, KeyError()),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
489
param
ref
function
pytest.param("three", [1, 2, 3]),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
495
test_idmaker_with_idfn_and_config
def
function
def test_idmaker_with_idfn_and_config(self) -> None: """Unit test for expected behavior to create ids with idfn and disable_test_id_escaping_and_forfeit_all_rights_to_community_support option (#5294). """ class MockConfig: def __init__(self, config): ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
501
MockConfig
def
class
getini hook pytest_make_parametrize_id __init__ hook pytest_make_parametrize_id getini __init__ hook pytest_make_parametrize_id getini __init__ hook pytest_make_parametrize_id getini
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
506
hook
def
function
def hook(self): return self def pytest_make_parametrize_id(self, **kw): pass metafunc = self.Metafunc(func, MockConfig()) metafunc.parametrize("y", []) assert "skip" == metafunc._calls[0].marks[0].name def test_parametrize_with_usero...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
509
pytest_make_parametrize_id
def
function
def pytest_make_parametrize_id(self, **kw): pass metafunc = self.Metafunc(func, MockConfig()) metafunc.parametrize("y", []) assert "skip" == metafunc._calls[0].marks[0].name def test_parametrize_with_userobjects(self) -> None: def func(x, y): ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
512
getini
def
function
def getini(self, name): return "" @property def hook(self): return self def pytest_make_parametrize_id(self, **kw): pass metafunc = self.Metafunc(func, MockConfig()) metafunc.parametrize("y", []) a...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
518
MockConfig
ref
function
(MockConfig({option: True}), "ação"),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
519
MockConfig
ref
function
(MockConfig({option: False}), "a\\xe7\\xe3o"),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
522
idmaker
ref
function
result = idmaker(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
524
param
ref
function
[pytest.param("string")],
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
530
test_idmaker_with_ids_and_config
def
function
def test_idmaker_with_ids_and_config(self) -> None: """Unit test for expected behavior to create ids with ids and disable_test_id_escaping_and_forfeit_all_rights_to_community_support option (#5294). """ class MockConfig: def __init__(self, config): ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
536
MockConfig
def
class
getini hook pytest_make_parametrize_id __init__ hook pytest_make_parametrize_id getini __init__ hook pytest_make_parametrize_id getini __init__ hook pytest_make_parametrize_id getini
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
541
hook
def
function
def hook(self): return self def pytest_make_parametrize_id(self, **kw): pass metafunc = self.Metafunc(func, MockConfig()) metafunc.parametrize("y", []) assert "skip" == metafunc._calls[0].marks[0].name def test_parametrize_with_usero...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
544
pytest_make_parametrize_id
def
function
def pytest_make_parametrize_id(self, **kw): pass metafunc = self.Metafunc(func, MockConfig()) metafunc.parametrize("y", []) assert "skip" == metafunc._calls[0].marks[0].name def test_parametrize_with_userobjects(self) -> None: def func(x, y): ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
547
getini
def
function
def getini(self, name): return "" @property def hook(self): return self def pytest_make_parametrize_id(self, **kw): pass metafunc = self.Metafunc(func, MockConfig()) metafunc.parametrize("y", []) a...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
553
MockConfig
ref
function
(MockConfig({option: True}), "ação"),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
554
MockConfig
ref
function
(MockConfig({option: False}), "a\\xe7\\xe3o"),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
557
idmaker
ref
function
result = idmaker(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
559
param
ref
function
[pytest.param("string")],
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
565
test_parametrize_ids_exception
def
function
def test_parametrize_ids_exception(self, pytester: Pytester) -> None: """ :param pytester: the instance of Pytester class, a temporary test directory. """ pytester.makepyfile( """ import pytest def ids(arg): rai...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
570
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
582
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
583
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
590
test_parametrize_ids_returns_non_string
def
function
def test_parametrize_ids_returns_non_string(self, pytester: Pytester) -> None: pytester.makepyfile( """\ import pytest def ids(d): return d @pytest.mark.parametrize("arg", ({1: 2}, {3, 4}), ids=ids) def test(arg): ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
591
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
607
runpytest
ref
function
result = pytester.runpytest("-vv", "-s")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
608
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
618
test_idmaker_with_ids
def
function
def test_idmaker_with_ids(self) -> None: result = idmaker( ("a", "b"), [pytest.param(1, 2), pytest.param(3, 4)], ids=["a", None] ) assert result == ["a", "3-4"] def test_idmaker_with_paramset_id(self) -> None: result = idmaker( ("a", "b"), [py...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
619
idmaker
ref
function
result = idmaker(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
620
param
ref
function
("a", "b"), [pytest.param(1, 2), pytest.param(3, 4)], ids=["a", None]
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
620
param
ref
function
("a", "b"), [pytest.param(1, 2), pytest.param(3, 4)], ids=["a", None]
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
624
test_idmaker_with_paramset_id
def
function
def test_idmaker_with_paramset_id(self) -> None: result = idmaker( ("a", "b"), [pytest.param(1, 2, id="me"), pytest.param(3, 4, id="you")], ids=["a", None], ) assert result == ["me", "you"] def test_idmaker_with_ids_unique_names(self) -> None: ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
625
idmaker
ref
function
result = idmaker(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
627
param
ref
function
[pytest.param(1, 2, id="me"), pytest.param(3, 4, id="you")],
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
627
param
ref
function
[pytest.param(1, 2, id="me"), pytest.param(3, 4, id="you")],
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
632
test_idmaker_with_ids_unique_names
def
function
def test_idmaker_with_ids_unique_names(self) -> None: result = idmaker( ("a"), map(pytest.param, [1, 2, 3, 4, 5]), ids=["a", "a", "b", "c", "b"] ) assert result == ["a0", "a1", "b0", "c", "b1"] def test_parametrize_indirect(self) -> None: """#714""" def func...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
633
idmaker
ref
function
result = idmaker(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
638
test_parametrize_indirect
def
function
def test_parametrize_indirect(self) -> None: """#714""" def func(x, y): pass metafunc = self.Metafunc(func) metafunc.parametrize("x", [1], indirect=_True) metafunc.parametrize("y", [2, 3], indirect=_True) assert len(metafunc._calls) == 2 assert m...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
641
func
def
function
def func(x, y): pass metafunc = self.Metafunc(func) metafunc.parametrize("x", [1, 2]) pytest.raises(ValueError, lambda: metafunc.parametrize("x", [5, 6])) pytest.raises(ValueError, lambda: metafunc.parametrize("x", [5, 6])) metafunc.parametrize("y", [1, 2]) ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
644
Metafunc
ref
function
metafunc = self.Metafunc(func)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
645
parametrize
ref
function
metafunc.parametrize("x", [1], indirect=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
646
parametrize
ref
function
metafunc.parametrize("y", [2, 3], indirect=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
653
test_parametrize_indirect_list
def
function
def test_parametrize_indirect_list(self) -> None: """#714""" def func(x, y): pass metafunc = self.Metafunc(func) metafunc.parametrize("x, y", [("a", "b")], indirect=["x"]) assert metafunc._calls[0].funcargs == dict(y="b") assert metafunc._calls[0].params...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
656
func
def
function
def func(x, y): pass metafunc = self.Metafunc(func) metafunc.parametrize("x", [1, 2]) pytest.raises(ValueError, lambda: metafunc.parametrize("x", [5, 6])) pytest.raises(ValueError, lambda: metafunc.parametrize("x", [5, 6])) metafunc.parametrize("y", [1, 2]) ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
659
Metafunc
ref
function
metafunc = self.Metafunc(func)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
660
parametrize
ref
function
metafunc.parametrize("x, y", [("a", "b")], indirect=["x"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
664
test_parametrize_indirect_list_all
def
function
def test_parametrize_indirect_list_all(self) -> None: """#714""" def func(x, y): pass metafunc = self.Metafunc(func) metafunc.parametrize("x, y", [("a", "b")], indirect=["x", "y"]) assert metafunc._calls[0].funcargs == {} assert metafunc._calls[0].params...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/metafunc.py
testing/python/metafunc.py
667
func
def
function
def func(x, y): pass metafunc = self.Metafunc(func) metafunc.parametrize("x", [1, 2]) pytest.raises(ValueError, lambda: metafunc.parametrize("x", [5, 6])) pytest.raises(ValueError, lambda: metafunc.parametrize("x", [5, 6])) metafunc.parametrize("y", [1, 2]) ...