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/collect.py | testing/python/collect.py | 1,313 | makeconftest | ref | function | pytester.makeconftest(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,320 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,328 | runpytest | ref | function | result = pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,333 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*1 passed*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,336 | test_syntax_error_with_non_ascii_chars | def | function | def test_syntax_error_with_non_ascii_chars(pytester: Pytester) -> None:
"""Fix decoding issue while formatting SyntaxErrors during collection (#578)."""
pytester.makepyfile("☃")
result = pytester.runpytest()
result.stdout.fnmatch_lines(["*ERROR collecting*", "*SyntaxError*", "*1 error in*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,338 | makepyfile | ref | function | pytester.makepyfile("☃")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,339 | runpytest | ref | function | result = pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,340 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*ERROR collecting*", "*SyntaxError*", "*1 error in*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,343 | test_collect_error_with_fulltrace | def | function | def test_collect_error_with_fulltrace(pytester: Pytester) -> None:
pytester.makepyfile("assert 0")
result = pytester.runpytest("--fulltrace")
result.stdout.fnmatch_lines(
[
"collected 0 items / 1 error",
"",
"*= ERRORS =*",
"*_ ERROR collecting test_co... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,344 | makepyfile | ref | function | pytester.makepyfile("assert 0")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,345 | runpytest | ref | function | result = pytester.runpytest("--fulltrace")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,346 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,362 | test_skip_duplicates_by_default | def | function | def test_skip_duplicates_by_default(pytester: Pytester) -> None:
"""Test for issue https://github.com/pytest-dev/pytest/issues/1609 (#1609)
Ignore duplicate directories.
"""
a = pytester.mkdir("a")
fh = a.joinpath("test_a.py")
fh.write_text(
textwrap.dedent(
"""\
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,368 | joinpath | ref | function | fh = a.joinpath("test_a.py")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,369 | write_text | ref | function | fh.write_text(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,378 | runpytest | ref | function | result = pytester.runpytest(str(a), str(a))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,379 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*collected 1 item*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,382 | test_keep_duplicates | def | function | def test_keep_duplicates(pytester: Pytester) -> None:
"""Test for issue https://github.com/pytest-dev/pytest/issues/1609 (#1609)
Use --keep-duplicates to collect tests from duplicate directories.
"""
a = pytester.mkdir("a")
fh = a.joinpath("test_a.py")
fh.write_text(
textwrap.dedent(
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,388 | joinpath | ref | function | fh = a.joinpath("test_a.py")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,389 | write_text | ref | function | fh.write_text(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,398 | runpytest | ref | function | result = pytester.runpytest("--keep-duplicates", str(a), str(a))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,399 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*collected 2 item*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,402 | test_package_collection_infinite_recursion | def | function | def test_package_collection_infinite_recursion(pytester: Pytester) -> None:
pytester.copy_example("collect/package_infinite_recursion")
result = pytester.runpytest()
result.stdout.fnmatch_lines(["*1 passed*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,403 | copy_example | ref | function | pytester.copy_example("collect/package_infinite_recursion")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,404 | runpytest | ref | function | result = pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,405 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*1 passed*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,408 | test_package_collection_init_given_as_argument | def | function | def test_package_collection_init_given_as_argument(pytester: Pytester) -> None:
"""Regression test for #3749"""
p = pytester.copy_example("collect/package_init_given_as_arg")
result = pytester.runpytest(p / "pkg" / "__init__.py")
result.stdout.fnmatch_lines(["*1 passed*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,410 | copy_example | ref | function | p = pytester.copy_example("collect/package_init_given_as_arg")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,411 | runpytest | ref | function | result = pytester.runpytest(p / "pkg" / "__init__.py")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,412 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*1 passed*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,415 | test_package_with_modules | def | function | def test_package_with_modules(pytester: Pytester) -> None:
"""
.
└── root
├── __init__.py
├── sub1
│ ├── __init__.py
│ └── sub1_1
│ ├── __init__.py
│ └── test_in_sub1.py
└── sub2
└── test
└── test_in_sub2.py
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,430 | mkpydir | ref | function | root = pytester.mkpydir("root")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,431 | joinpath | ref | function | sub1 = root.joinpath("sub1")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,432 | joinpath | ref | function | sub1_test = sub1.joinpath("sub1_1")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,435 | joinpath | ref | function | d.joinpath("__init__.py").touch()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,435 | touch | ref | function | d.joinpath("__init__.py").touch()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,437 | joinpath | ref | function | sub2 = root.joinpath("sub2")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,438 | joinpath | ref | function | sub2_test = sub2.joinpath("test")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,441 | joinpath | ref | function | sub1_test.joinpath("test_in_sub1.py").write_text("def test_1(): pass")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,441 | write_text | ref | function | sub1_test.joinpath("test_in_sub1.py").write_text("def test_1(): pass")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,442 | joinpath | ref | function | sub2_test.joinpath("test_in_sub2.py").write_text("def test_2(): pass")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,442 | write_text | ref | function | sub2_test.joinpath("test_in_sub2.py").write_text("def test_2(): pass")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,445 | runpytest | ref | function | result = pytester.runpytest("-v", "-s")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,446 | assert_outcomes | ref | function | result.assert_outcomes(passed=2)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,449 | runpytest | ref | function | result = pytester.runpytest("-v", "-s", "root")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,450 | assert_outcomes | ref | function | result.assert_outcomes(passed=2)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,454 | runpytest | ref | function | result = pytester.runpytest("-v", "-s")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,455 | assert_outcomes | ref | function | result.assert_outcomes(passed=2)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,458 | test_package_ordering | def | function | def test_package_ordering(pytester: Pytester) -> None:
"""
.
└── root
├── Test_root.py
├── __init__.py
├── sub1
│ ├── Test_sub1.py
│ └── __init__.py
└── sub2
└── test
└── test_sub2.py
"""
pytester.makeini(
"""
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,472 | makeini | ref | function | pytester.makeini(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,478 | mkpydir | ref | function | root = pytester.mkpydir("root")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,479 | joinpath | ref | function | sub1 = root.joinpath("sub1")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,481 | joinpath | ref | function | sub1.joinpath("__init__.py").touch()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,481 | touch | ref | function | sub1.joinpath("__init__.py").touch()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,482 | joinpath | ref | function | sub2 = root.joinpath("sub2")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,483 | joinpath | ref | function | sub2_test = sub2.joinpath("test")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,486 | joinpath | ref | function | root.joinpath("Test_root.py").write_text("def test_1(): pass")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,486 | write_text | ref | function | root.joinpath("Test_root.py").write_text("def test_1(): pass")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,487 | joinpath | ref | function | sub1.joinpath("Test_sub1.py").write_text("def test_2(): pass")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,487 | write_text | ref | function | sub1.joinpath("Test_sub1.py").write_text("def test_2(): pass")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,488 | joinpath | ref | function | sub2_test.joinpath("test_sub2.py").write_text("def test_3(): pass")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,488 | write_text | ref | function | sub2_test.joinpath("test_sub2.py").write_text("def test_3(): pass")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,491 | runpytest | ref | function | result = pytester.runpytest("-v", "-s")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/collect.py | testing/python/collect.py | 1,492 | assert_outcomes | ref | function | result.assert_outcomes(passed=3)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 16 | test_getfuncargnames_functions | def | function | def test_getfuncargnames_functions():
"""Test getfuncargnames for normal functions"""
def f():
raise NotImplementedError()
assert not getfuncargnames(f)
def g(arg):
raise NotImplementedError()
assert getfuncargnames(g) == ("arg",)
def h(arg1, arg2="hello"):
raise Not... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 19 | f | def | function | def f():
raise NotImplementedError()
assert not getfuncargnames(f)
def g(arg):
raise NotImplementedError()
assert getfuncargnames(g) == ("arg",)
def h(arg1, arg2="hello"):
raise NotImplementedError()
assert getfuncargnames(h) == ("arg1",)
def j(arg1, arg2, arg3=... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 22 | getfuncargnames | ref | function | assert not getfuncargnames(f)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 24 | g | def | function | def g(arg):
raise NotImplementedError()
assert getfuncargnames(g) == ("arg",)
def h(arg1, arg2="hello"):
raise NotImplementedError()
assert getfuncargnames(h) == ("arg1",)
def j(arg1, arg2, arg3="hello"):
raise NotImplementedError()
assert getfuncargnames(j) == ("arg... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 27 | getfuncargnames | ref | function | assert getfuncargnames(g) == ("arg",)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 29 | h | def | function | def h(arg1, arg2="hello"):
raise NotImplementedError()
assert getfuncargnames(h) == ("arg1",)
def j(arg1, arg2, arg3="hello"):
raise NotImplementedError()
assert getfuncargnames(j) == ("arg1", "arg2")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 32 | getfuncargnames | ref | function | assert getfuncargnames(h) == ("arg1",)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 34 | j | def | function | def j(arg1, arg2, arg3="hello"):
raise NotImplementedError()
assert getfuncargnames(j) == ("arg1", "arg2")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 37 | getfuncargnames | ref | function | assert getfuncargnames(j) == ("arg1", "arg2")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 40 | test_getfuncargnames_methods | def | function | def test_getfuncargnames_methods():
"""Test getfuncargnames for normal methods"""
class A:
def f(self, arg1, arg2="hello"):
raise NotImplementedError()
assert getfuncargnames(A().f) == ("arg1",)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 43 | A | def | class | f static static |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 44 | f | def | function | def f(self, arg1, arg2="hello"):
raise NotImplementedError()
assert getfuncargnames(A().f) == ("arg1",)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 47 | getfuncargnames | ref | function | assert getfuncargnames(A().f) == ("arg1",)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 47 | A | ref | function | assert getfuncargnames(A().f) == ("arg1",)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 50 | test_getfuncargnames_staticmethod | def | function | def test_getfuncargnames_staticmethod():
"""Test getfuncargnames for staticmethods"""
class A:
@staticmethod
def static(arg1, arg2, x=1):
raise NotImplementedError()
assert getfuncargnames(A.static, cls=A) == ("arg1", "arg2")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 53 | A | def | class | f static static |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 55 | static | def | function | def static(arg1, arg2, x=1):
raise NotImplementedError()
assert getfuncargnames(A.static, cls=A) == ("arg1", "arg2")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 58 | getfuncargnames | ref | function | assert getfuncargnames(A.static, cls=A) == ("arg1", "arg2")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 61 | test_getfuncargnames_staticmethod_inherited | def | function | def test_getfuncargnames_staticmethod_inherited() -> None:
"""Test getfuncargnames for inherited staticmethods (#8061)"""
class A:
@staticmethod
def static(arg1, arg2, x=1):
raise NotImplementedError()
class B(A):
pass
assert getfuncargnames(B.static, cls=B) == ("a... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 64 | A | def | class | f static static |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 66 | static | def | function | def static(arg1, arg2, x=1):
raise NotImplementedError()
assert getfuncargnames(A.static, cls=A) == ("arg1", "arg2")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 69 | B | def | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 72 | getfuncargnames | ref | function | assert getfuncargnames(B.static, cls=B) == ("arg1", "arg2")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 75 | test_getfuncargnames_partial | def | function | def test_getfuncargnames_partial():
"""Check getfuncargnames for methods defined with functools.partial (#5701)"""
import functools
def check(arg1, arg2, i):
raise NotImplementedError()
class T:
test_ok = functools.partial(check, i=2)
values = getfuncargnames(T().test_ok, name="te... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 79 | check | def | function | def check(arg1, arg2, i):
raise NotImplementedError()
class T:
test_ok = functools.partial(check, i=2)
values = getfuncargnames(T().test_ok, name="test_ok")
assert values == ("arg1", "arg2")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 82 | T | def | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 85 | getfuncargnames | ref | function | values = getfuncargnames(T().test_ok, name="test_ok")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 85 | T | ref | function | values = getfuncargnames(T().test_ok, name="test_ok")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 89 | test_getfuncargnames_staticmethod_partial | def | function | def test_getfuncargnames_staticmethod_partial():
"""Check getfuncargnames for staticmethods defined with functools.partial (#5701)"""
import functools
def check(arg1, arg2, i):
raise NotImplementedError()
class T:
test_ok = staticmethod(functools.partial(check, i=2))
values = getf... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 93 | check | def | function | def check(arg1, arg2, i):
raise NotImplementedError()
class T:
test_ok = functools.partial(check, i=2)
values = getfuncargnames(T().test_ok, name="test_ok")
assert values == ("arg1", "arg2")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 96 | T | def | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 99 | getfuncargnames | ref | function | values = getfuncargnames(T().test_ok, name="test_ok")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 99 | T | ref | function | values = getfuncargnames(T().test_ok, name="test_ok")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 103 | pytester_example_path | ref | function | @pytest.mark.pytester_example_path("fixtures/fill_fixtures")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 104 | TestFillFixtures | def | class | test_fillfuncargs_exposed test_funcarg_lookupfails test_detect_recursive_dependency_error test_funcarg_basic test_funcarg_lookup_modulelevel test_funcarg_lookup_classlevel test_conftest_funcargs_only_available_in_subdir test_extend_fixture_module_class test_extend_fixture_conftest_module test_extend_fixture_conftest_co... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/python/fixtures.py | testing/python/fixtures.py | 105 | test_fillfuncargs_exposed | def | function | def test_fillfuncargs_exposed(self):
# used by oejskit, kept for compatibility
assert pytest._fillfuncargs == fixtures._fillfuncargs
def test_funcarg_lookupfails(self, pytester: Pytester) -> None:
pytester.copy_example()
result = pytester.runpytest() # "--collect-only")
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.