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_doctest.py | testing/test_doctest.py | 1,172 | test_skipping_wrapped_test | def | function | def test_skipping_wrapped_test(self, pytester):
"""
Issue 8796: INTERNALERROR raised when skipping a decorated DocTest
through pytest_collection_modifyitems.
"""
pytester.makeconftest(
"""
import pytest
from _pytest.doctest import DoctestIt... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,177 | makeconftest | ref | function | pytester.makeconftest(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,191 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,203 | runpytest | ref | function | result = pytester.runpytest("--doctest-modules")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,205 | assert_outcomes | ref | function | result.assert_outcomes(skipped=1)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,208 | TestDoctestAutoUseFixtures | def | class | test_doctest_module_session_fixture test_fixture_scopes test_fixture_module_doctest_scopes test_auto_use_request_attributes |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,212 | test_doctest_module_session_fixture | def | function | def test_doctest_module_session_fixture(self, pytester: Pytester):
"""Test that session fixtures are initialized for doctest modules (#768)."""
# session fixture which changes some global data, which will
# be accessed by doctests in a module
pytester.makeconftest(
"""
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,216 | makeconftest | ref | function | pytester.makeconftest(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,229 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,244 | runpytest | ref | function | result = pytester.runpytest("--doctest-modules")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,245 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*2 passed*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,247 | parametrize | ref | function | @pytest.mark.parametrize("scope", SCOPES)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,248 | parametrize | ref | function | @pytest.mark.parametrize("enable_doctest", [True, False])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,249 | test_fixture_scopes | def | function | def test_fixture_scopes(self, pytester, scope, enable_doctest):
"""Test that auto-use fixtures work properly with doctest modules.
See #1057 and #1100.
"""
pytester.makeconftest(
"""
import pytest
@pytest.fixture(autouse=_True, scope="{scope}")
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,253 | makeconftest | ref | function | pytester.makeconftest(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,264 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,277 | runpytest | ref | function | result = pytester.runpytest(*params)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,278 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*=== %d passed in *" % passes])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,280 | parametrize | ref | function | @pytest.mark.parametrize("scope", SCOPES)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,281 | parametrize | ref | function | @pytest.mark.parametrize("autouse", [True, False])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,282 | parametrize | ref | function | @pytest.mark.parametrize("use_fixture_in_doctest", [True, False])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,283 | test_fixture_module_doctest_scopes | def | function | def test_fixture_module_doctest_scopes(
self, pytester, scope, autouse, use_fixture_in_doctest
):
"""Test that auto-use fixtures work properly with doctest files.
See #1057 and #1100.
"""
pytester.makeconftest(
"""
import pytest
@pytes... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,289 | makeconftest | ref | function | pytester.makeconftest(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,301 | maketxtfile | ref | function | pytester.maketxtfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,308 | maketxtfile | ref | function | pytester.maketxtfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,314 | runpytest | ref | function | result = pytester.runpytest("--doctest-modules")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,315 | no_fnmatch_line | ref | function | result.stdout.no_fnmatch_line("*FAILURES*")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,316 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*=== 1 passed in *"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,318 | parametrize | ref | function | @pytest.mark.parametrize("scope", SCOPES)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,319 | test_auto_use_request_attributes | def | function | def test_auto_use_request_attributes(self, pytester, scope):
"""Check that all attributes of a request in an autouse fixture
behave as expected when requested for a doctest item.
"""
pytester.makeconftest(
"""
import pytest
@pytest.fixture(autouse... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,323 | makeconftest | ref | function | pytester.makeconftest(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,340 | maketxtfile | ref | function | pytester.maketxtfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,346 | runpytest | ref | function | result = pytester.runpytest("--doctest-modules")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,347 | no_fnmatch_line | ref | function | str(result.stdout.no_fnmatch_line("*FAILURES*"))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,348 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*=== 1 passed in *"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,351 | TestDoctestNamespaceFixture | def | class | test_namespace_doctestfile test_namespace_pyfile |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,355 | parametrize | ref | function | @pytest.mark.parametrize("scope", SCOPES)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,356 | test_namespace_doctestfile | def | function | def test_namespace_doctestfile(self, pytester, scope):
"""
Check that inserting something into the namespace works in a
simple text file doctest
"""
pytester.makeconftest(
"""
import pytest
import contextlib
@pytest.fixture(aut... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,361 | makeconftest | ref | function | pytester.makeconftest(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,373 | maketxtfile | ref | function | p = pytester.maketxtfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,379 | inline_run | ref | function | reprec = pytester.inline_run(p)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,380 | assertoutcome | ref | function | reprec.assertoutcome(passed=1)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,382 | parametrize | ref | function | @pytest.mark.parametrize("scope", SCOPES)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,383 | test_namespace_pyfile | def | function | def test_namespace_pyfile(self, pytester, scope):
"""
Check that inserting something into the namespace works in a
simple Python file docstring doctest
"""
pytester.makeconftest(
"""
import pytest
import contextlib
@pytest.fixt... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,388 | makeconftest | ref | function | pytester.makeconftest(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,400 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,409 | inline_run | ref | function | reprec = pytester.inline_run(p, "--doctest-modules")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,410 | assertoutcome | ref | function | reprec.assertoutcome(passed=1)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,413 | TestDoctestReportingOption | def | class | _run_doctest_report test_doctest_report_udiff test_doctest_report_cdiff test_doctest_report_ndiff test_doctest_report_none_or_only_first_failure test_doctest_report_invalid |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,414 | _run_doctest_report | def | function | def _run_doctest_report(self, pytester, format):
pytester.makepyfile(
"""
def foo():
'''
>>> foo()
a b
0 1 4
1 2 4
2 3 6
'''
print(' a b\\n'
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,415 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,431 | runpytest | ref | function | return pytester.runpytest("--doctest-modules", "--doctest-report", format)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,433 | parametrize | ref | function | @pytest.mark.parametrize("format", ["udiff", "UDIFF", "uDiFf"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,434 | test_doctest_report_udiff | def | function | def test_doctest_report_udiff(self, pytester, format):
result = self._run_doctest_report(pytester, format)
result.stdout.fnmatch_lines(
[" 0 1 4", " -1 2 4", " +1 2 5", " 2 3 6"]
)
def test_doctest_report_cdiff(self, pytester: Pytester):
result ... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,435 | _run_doctest_report | ref | function | result = self._run_doctest_report(pytester, format)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,436 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,440 | test_doctest_report_cdiff | def | function | def test_doctest_report_cdiff(self, pytester: Pytester):
result = self._run_doctest_report(pytester, "cdiff")
result.stdout.fnmatch_lines(
[
" a b",
" 0 1 4",
" ! 1 2 4",
" 2 3 6",
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,441 | _run_doctest_report | ref | function | result = self._run_doctest_report(pytester, "cdiff")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,442 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,456 | test_doctest_report_ndiff | def | function | def test_doctest_report_ndiff(self, pytester: Pytester):
result = self._run_doctest_report(pytester, "ndiff")
result.stdout.fnmatch_lines(
[
" a b",
" 0 1 4",
" - 1 2 4",
" ? ^",
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,457 | _run_doctest_report | ref | function | result = self._run_doctest_report(pytester, "ndiff")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,458 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,470 | parametrize | ref | function | @pytest.mark.parametrize("format", ["none", "only_first_failure"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,471 | test_doctest_report_none_or_only_first_failure | def | function | def test_doctest_report_none_or_only_first_failure(self, pytester, format):
result = self._run_doctest_report(pytester, format)
result.stdout.fnmatch_lines(
[
"Expected:",
" a b",
" 0 1 4",
" 1 2 4",
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,472 | _run_doctest_report | ref | function | result = self._run_doctest_report(pytester, format)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,473 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,488 | test_doctest_report_invalid | def | function | def test_doctest_report_invalid(self, pytester: Pytester):
result = self._run_doctest_report(pytester, "obviously_invalid_format")
result.stderr.fnmatch_lines(
[
"*error: argument --doctest-report: invalid choice: 'obviously_invalid_format' (choose from*"
]
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,489 | _run_doctest_report | ref | function | result = self._run_doctest_report(pytester, "obviously_invalid_format")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,490 | fnmatch_lines | ref | function | result.stderr.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,497 | parametrize | ref | function | @pytest.mark.parametrize("mock_module", ["mock", "unittest.mock"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,498 | test_doctest_mock_objects_dont_recurse_missbehaved | def | function | def test_doctest_mock_objects_dont_recurse_missbehaved(mock_module, pytester: Pytester):
pytest.importorskip(mock_module)
pytester.makepyfile(
"""
from {mock_module} import call
class Example(object):
'''
>>> 1 + 1
2
'''
""".format(... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,499 | importorskip | ref | function | pytest.importorskip(mock_module)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,500 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,512 | runpytest | ref | function | result = pytester.runpytest("--doctest-modules")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,513 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["* 1 passed *"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,516 | Broken | def | class | __getattr__ |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,521 | parametrize | ref | function | @pytest.mark.parametrize( # pragma: no branch (lambdas are not called)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,524 | test_warning_on_unwrap_of_broken_object | def | function | def test_warning_on_unwrap_of_broken_object(
stop: Optional[Callable[[object], object]]
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,527 | Broken | ref | function | bad_instance = Broken()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,529 | _patch_unwrap_mock_aware | ref | function | with _patch_unwrap_mock_aware():
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,531 | warns | ref | function | with pytest.warns(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,534 | raises | ref | function | with pytest.raises(KeyError):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,539 | test_is_setup_py_not_named_setup_py | def | function | def test_is_setup_py_not_named_setup_py(tmp_path: Path) -> None:
not_setup_py = tmp_path.joinpath("not_setup.py")
not_setup_py.write_text('from setuptools import setup; setup(name="foo")')
assert not _is_setup_py(not_setup_py)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,542 | _is_setup_py | ref | function | assert not _is_setup_py(not_setup_py)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,545 | parametrize | ref | function | @pytest.mark.parametrize("mod", ("setuptools", "distutils.core"))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,546 | test_is_setup_py_is_a_setup_py | def | function | def test_is_setup_py_is_a_setup_py(tmp_path: Path, mod: str) -> None:
setup_py = tmp_path.joinpath("setup.py")
setup_py.write_text(f'from {mod} import setup; setup(name="foo")', "utf-8")
assert _is_setup_py(setup_py)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,549 | _is_setup_py | ref | function | assert _is_setup_py(setup_py)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,552 | parametrize | ref | function | @pytest.mark.parametrize("mod", ("setuptools", "distutils.core"))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,553 | test_is_setup_py_different_encoding | def | function | def test_is_setup_py_different_encoding(tmp_path: Path, mod: str) -> None:
setup_py = tmp_path.joinpath("setup.py")
contents = (
"# -*- coding: cp1252 -*-\n"
'from {} import setup; setup(name="foo", description="€")\n'.format(mod)
)
setup_py.write_bytes(contents.encode("cp1252"))
ass... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,560 | _is_setup_py | ref | function | assert _is_setup_py(setup_py)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,563 | parametrize | ref | function | @pytest.mark.parametrize(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,566 | test_is_main_py | def | function | def test_is_main_py(tmp_path: Path, name: str, expected: bool) -> None:
dunder_main = tmp_path.joinpath(name)
assert _is_main_py(dunder_main) == expected
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,568 | _is_main_py | ref | function | assert _is_main_py(dunder_main) == expected
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_entry_points.py | testing/test_entry_points.py | 3 | test_pytest_entry_points_are_identical | def | function | def test_pytest_entry_points_are_identical():
dist = importlib_metadata.distribution("pytest")
entry_map = {ep.name: ep for ep in dist.entry_points}
assert entry_map["pytest"].value == entry_map["py.test"].value
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_entry_points.py | testing/test_entry_points.py | 4 | distribution | ref | function | dist = importlib_metadata.distribution("pytest")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_error_diffs.py | testing/test_error_diffs.py | 13 | param | ref | function | pytest.param(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_error_diffs.py | testing/test_error_diffs.py | 32 | param | ref | function | pytest.param(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_error_diffs.py | testing/test_error_diffs.py | 50 | param | ref | function | pytest.param(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_error_diffs.py | testing/test_error_diffs.py | 69 | param | ref | function | pytest.param(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_error_diffs.py | testing/test_error_diffs.py | 88 | param | ref | function | pytest.param(
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.