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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,141 | assertoutcome | ref | function | reprec.assertoutcome(passed=0, skipped=0)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,143 | test_continue_on_failure | def | function | def test_continue_on_failure(self, pytester: Pytester):
pytester.maketxtfile(
test_something="""
>>> i = 5
>>> def foo():
... raise ValueError('error1')
>>> foo()
>>> i
>>> i + 2
7
>>> i + 1
... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,144 | maketxtfile | ref | function | pytester.maketxtfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,156 | runpytest | ref | function | result = pytester.runpytest(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,159 | assert_outcomes | ref | function | result.assert_outcomes(passed=0, failed=1)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,162 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,167 | TestDoctestAutoUseFixtures | def | class | test_doctest_module_session_fixture test_fixture_scopes test_fixture_module_doctest_scopes test_auto_use_request_attributes |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,171 | 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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,175 | makeconftest | ref | function | pytester.makeconftest(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,188 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,203 | runpytest | ref | function | result = pytester.runpytest("--doctest-modules")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,204 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*2 passed*"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,206 | parametrize | ref | function | @pytest.mark.parametrize("scope", SCOPES)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,207 | parametrize | ref | function | @pytest.mark.parametrize("enable_doctest", [True, False])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,208 | 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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,212 | makeconftest | ref | function | pytester.makeconftest(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,223 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,236 | runpytest | ref | function | result = pytester.runpytest(*params)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,237 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*=== %d passed in *" % passes])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,239 | parametrize | ref | function | @pytest.mark.parametrize("scope", SCOPES)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,240 | parametrize | ref | function | @pytest.mark.parametrize("autouse", [True, False])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,241 | parametrize | ref | function | @pytest.mark.parametrize("use_fixture_in_doctest", [True, False])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,242 | 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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,248 | makeconftest | ref | function | pytester.makeconftest(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,260 | maketxtfile | ref | function | pytester.maketxtfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,267 | maketxtfile | ref | function | pytester.maketxtfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,273 | runpytest | ref | function | result = pytester.runpytest("--doctest-modules")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,274 | no_fnmatch_line | ref | function | result.stdout.no_fnmatch_line("*FAILURES*")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,275 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*=== 1 passed in *"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,277 | parametrize | ref | function | @pytest.mark.parametrize("scope", SCOPES)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,278 | 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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,282 | makeconftest | ref | function | pytester.makeconftest(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,299 | maketxtfile | ref | function | pytester.maketxtfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,305 | runpytest | ref | function | result = pytester.runpytest("--doctest-modules")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,306 | no_fnmatch_line | ref | function | str(result.stdout.no_fnmatch_line("*FAILURES*"))
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,307 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*=== 1 passed in *"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,310 | TestDoctestNamespaceFixture | def | class | test_namespace_doctestfile test_namespace_pyfile |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,314 | parametrize | ref | function | @pytest.mark.parametrize("scope", SCOPES)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,315 | 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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,320 | makeconftest | ref | function | pytester.makeconftest(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,332 | maketxtfile | ref | function | p = pytester.maketxtfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,338 | inline_run | ref | function | reprec = pytester.inline_run(p)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,339 | assertoutcome | ref | function | reprec.assertoutcome(passed=1)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,341 | parametrize | ref | function | @pytest.mark.parametrize("scope", SCOPES)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,342 | 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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,347 | makeconftest | ref | function | pytester.makeconftest(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,359 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,368 | inline_run | ref | function | reprec = pytester.inline_run(p, "--doctest-modules")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,369 | assertoutcome | ref | function | reprec.assertoutcome(passed=1)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,372 | 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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,373 | _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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,374 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,390 | runpytest | ref | function | return pytester.runpytest("--doctest-modules", "--doctest-report", format)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,392 | parametrize | ref | function | @pytest.mark.parametrize("format", ["udiff", "UDIFF", "uDiFf"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,393 | 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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,394 | _run_doctest_report | ref | function | result = self._run_doctest_report(pytester, format)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,395 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,399 | 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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,400 | _run_doctest_report | ref | function | result = self._run_doctest_report(pytester, "cdiff")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,401 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,415 | 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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,416 | _run_doctest_report | ref | function | result = self._run_doctest_report(pytester, "ndiff")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,417 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,429 | parametrize | ref | function | @pytest.mark.parametrize("format", ["none", "only_first_failure"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,430 | 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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,431 | _run_doctest_report | ref | function | result = self._run_doctest_report(pytester, format)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,432 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,447 | 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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,448 | _run_doctest_report | ref | function | result = self._run_doctest_report(pytester, "obviously_invalid_format")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,449 | fnmatch_lines | ref | function | result.stderr.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,456 | parametrize | ref | function | @pytest.mark.parametrize("mock_module", ["mock", "unittest.mock"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,457 | 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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,458 | importorskip | ref | function | pytest.importorskip(mock_module)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,459 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,471 | runpytest | ref | function | result = pytester.runpytest("--doctest-modules")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,472 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["* 1 passed *"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,475 | Broken | def | class | __getattr__ |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,480 | parametrize | ref | function | @pytest.mark.parametrize( # pragma: no branch (lambdas are not called)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,483 | test_warning_on_unwrap_of_broken_object | def | function | def test_warning_on_unwrap_of_broken_object(
stop: Optional[Callable[[object], object]]
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,486 | Broken | ref | function | bad_instance = Broken()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,488 | _patch_unwrap_mock_aware | ref | function | with _patch_unwrap_mock_aware():
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,490 | warns | ref | function | with pytest.warns(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,493 | raises | ref | function | with pytest.raises(KeyError):
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,498 | 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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,501 | _is_setup_py | ref | function | assert not _is_setup_py(not_setup_py)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,504 | parametrize | ref | function | @pytest.mark.parametrize("mod", ("setuptools", "distutils.core"))
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,505 | 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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,508 | _is_setup_py | ref | function | assert _is_setup_py(setup_py)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,511 | parametrize | ref | function | @pytest.mark.parametrize("mod", ("setuptools", "distutils.core"))
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,512 | 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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 1,519 | _is_setup_py | ref | function | assert _is_setup_py(setup_py)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_entry_points.py | testing/test_entry_points.py | 4 | distribution | ref | function | dist = importlib_metadata.distribution("pytest")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_error_diffs.py | testing/test_error_diffs.py | 13 | param | ref | function | pytest.param(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_error_diffs.py | testing/test_error_diffs.py | 32 | param | ref | function | pytest.param(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_error_diffs.py | testing/test_error_diffs.py | 50 | param | ref | function | pytest.param(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_error_diffs.py | testing/test_error_diffs.py | 69 | param | ref | function | pytest.param(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_error_diffs.py | testing/test_error_diffs.py | 88 | param | ref | function | pytest.param(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_error_diffs.py | testing/test_error_diffs.py | 110 | param | ref | function | pytest.param(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_error_diffs.py | testing/test_error_diffs.py | 134 | 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.