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_debugging.py | testing/test_debugging.py | 1,079 | flush | ref | function | TestPDB.flush(child)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,081 | test_trace_with_parametrize_handles_shared_fixtureinfo | def | function | def test_trace_with_parametrize_handles_shared_fixtureinfo(
self, pytester: Pytester
) -> None:
p1 = pytester.makepyfile(
"""
import pytest
@pytest.mark.parametrize('myparam', [1,2])
def test_1(myparam, request):
assert myparam in (... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,084 | makepyfile | ref | function | p1 = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,102 | spawn_pytest | ref | function | child = pytester.spawn_pytest("--trace " + str(p1))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,108 | expect_exact | ref | function | child.expect_exact("> PDB runcall (IO-capturing turned off) >")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,109 | expect_exact | ref | function | child.expect_exact(func)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,110 | expect_exact | ref | function | child.expect_exact("Pdb")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,111 | sendline | ref | function | child.sendline("args")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,112 | expect_exact | ref | function | child.expect_exact(f"{argname} = 1\r\n")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,113 | expect_exact | ref | function | child.expect_exact("Pdb")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,114 | sendline | ref | function | child.sendline("c")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,115 | expect_exact | ref | function | child.expect_exact("Pdb")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,116 | sendline | ref | function | child.sendline("args")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,117 | expect_exact | ref | function | child.expect_exact(f"{argname} = 2\r\n")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,118 | expect_exact | ref | function | child.expect_exact("Pdb")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,119 | sendline | ref | function | child.sendline("c")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,120 | expect_exact | ref | function | child.expect_exact("> PDB continue (IO-capturing resumed) >")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,121 | decode | ref | function | rest = child.read().decode("utf8")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,125 | decode | ref | function | assert "Exit: Quitting debugger" not in child.before.decode("utf8")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,126 | flush | ref | function | TestPDB.flush(child)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,129 | test_trace_after_runpytest | def | function | def test_trace_after_runpytest(pytester: Pytester) -> None:
"""Test that debugging's pytest_configure is re-entrant."""
p1 = pytester.makepyfile(
"""
from _pytest.debugging import pytestPDB
def test_outer(pytester) -> None:
assert len(pytestPDB._saved) == 1
pyte... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,131 | makepyfile | ref | function | p1 = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,155 | runpytest_subprocess | ref | function | result = pytester.runpytest_subprocess("-s", "-p", "pytester", str(p1))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,156 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["test_inner_end"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,160 | test_quit_with_swallowed_SystemExit | def | function | def test_quit_with_swallowed_SystemExit(pytester: Pytester) -> None:
"""Test that debugging's pytest_configure is re-entrant."""
p1 = pytester.makepyfile(
"""
def call_pdb_set_trace():
__import__('pdb').set_trace()
def test_1():
try:
call_pdb_set... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,162 | makepyfile | ref | function | p1 = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,179 | spawn_pytest | ref | function | child = pytester.spawn_pytest(str(p1))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,180 | expect | ref | function | child.expect("Pdb")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,181 | sendline | ref | function | child.sendline("q")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,182 | expect_exact | ref | function | child.expect_exact("Exit: Quitting debugger")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,183 | decode | ref | function | rest = child.read().decode("utf8")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,185 | flush | ref | function | TestPDB.flush(child)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,188 | parametrize | ref | function | @pytest.mark.parametrize("fixture", ("capfd", "capsys"))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,189 | test_pdb_suspends_fixture_capturing | def | function | def test_pdb_suspends_fixture_capturing(pytester: Pytester, fixture: str) -> None:
"""Using "-s" with pytest should suspend/resume fixture capturing."""
p1 = pytester.makepyfile(
"""
def test_inner({fixture}):
import sys
print("out_inner_before")
sys.stderr.w... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,191 | makepyfile | ref | function | p1 = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,212 | spawn_pytest | ref | function | child = pytester.spawn_pytest(str(p1) + " -s")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,214 | expect | ref | function | child.expect("Pdb")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,215 | decode | ref | function | before = child.before.decode("utf8")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,222 | sendline | ref | function | child.sendline("p 40 + 2")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,223 | expect | ref | function | child.expect("Pdb")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,224 | decode | ref | function | assert "\r\n42\r\n" in child.before.decode("utf8")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,226 | sendline | ref | function | child.sendline("c")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,227 | decode | ref | function | rest = child.read().decode("utf8")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,231 | flush | ref | function | TestPDB.flush(child)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,237 | test_pdbcls_via_local_module | def | function | def test_pdbcls_via_local_module(pytester: Pytester) -> None:
"""It should be imported in pytest_configure or later only."""
p1 = pytester.makepyfile(
"""
def test():
print("before_set_trace")
__import__("pdb").set_trace()
""",
mypdb="""
class Wrap... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,239 | makepyfile | ref | function | p1 = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,255 | runpytest | ref | function | result = pytester.runpytest(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,258 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,266 | runpytest | ref | function | result = pytester.runpytest(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,270 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*set_trace_called*", "* 1 passed in *"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,273 | runpytest | ref | function | result = pytester.runpytest(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,277 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*runcall_called*", "* 1 passed in *"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,280 | test_raises_bdbquit_with_eoferror | def | function | def test_raises_bdbquit_with_eoferror(pytester: Pytester) -> None:
"""It is not guaranteed that DontReadFromInput's read is called."""
p1 = pytester.makepyfile(
"""
def input_without_read(*args, **kwargs):
raise EOFError()
def test(monkeypatch):
import builtins
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,283 | makepyfile | ref | function | p1 = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,294 | runpytest | ref | function | result = pytester.runpytest(str(p1))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,295 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["E *BdbQuit", "*= 1 failed in*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,299 | test_pdb_wrapper_class_is_reused | def | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,300 | makepyfile | ref | function | p1 = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,322 | runpytest | ref | function | result = pytester.runpytest(str(p1), "--pdbcls=mypdb:MyPdb", syspathinsert=True)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 1,324 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 18 | TestDoctests | def | class | test_collect_testtextfile test_collect_module_empty test_collect_module_single_modulelevel_doctest test_collect_module_two_doctest_one_modulelevel test_collect_module_two_doctest_no_modulelevel test_simple_doctestfile test_new_pattern test_multiple_patterns test_encoding test_doctest_unexpected_exception test_doctest_o... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 19 | test_collect_testtextfile | def | function | def test_collect_testtextfile(self, pytester: Pytester):
w = pytester.maketxtfile(whatever="")
checkfile = pytester.maketxtfile(
test_something="""
alskdjalsdk
>>> i = 5
>>> i-1
4
"""
)
for x in (pytester.path, chec... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 20 | maketxtfile | ref | function | w = pytester.maketxtfile(whatever="")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 21 | maketxtfile | ref | function | checkfile = pytester.maketxtfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 32 | inline_genitems | ref | function | items, reprec = pytester.inline_genitems(x)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 37 | inline_genitems | ref | function | items, reprec = pytester.inline_genitems(w)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 40 | test_collect_module_empty | def | function | def test_collect_module_empty(self, pytester: Pytester):
path = pytester.makepyfile(whatever="#")
for p in (path, pytester.path):
items, reprec = pytester.inline_genitems(p, "--doctest-modules")
assert len(items) == 0
def test_collect_module_single_modulelevel_doctest(se... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 41 | makepyfile | ref | function | path = pytester.makepyfile(whatever="#")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 43 | inline_genitems | ref | function | items, reprec = pytester.inline_genitems(p, "--doctest-modules")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 46 | test_collect_module_single_modulelevel_doctest | def | function | def test_collect_module_single_modulelevel_doctest(self, pytester: Pytester):
path = pytester.makepyfile(whatever='""">>> pass"""')
for p in (path, pytester.path):
items, reprec = pytester.inline_genitems(p, "--doctest-modules")
assert len(items) == 1
assert isins... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 47 | makepyfile | ref | function | path = pytester.makepyfile(whatever='""">>> pass"""')
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 49 | inline_genitems | ref | function | items, reprec = pytester.inline_genitems(p, "--doctest-modules")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 54 | test_collect_module_two_doctest_one_modulelevel | def | function | def test_collect_module_two_doctest_one_modulelevel(self, pytester: Pytester):
path = pytester.makepyfile(
whatever="""
'>>> x = None'
def my_func():
">>> magic = 42 "
"""
)
for p in (path, pytester.path):
items, reprec ... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 55 | makepyfile | ref | function | path = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 63 | inline_genitems | ref | function | items, reprec = pytester.inline_genitems(p, "--doctest-modules")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 70 | parametrize | ref | function | @pytest.mark.parametrize("filename", ["__init__", "whatever"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 71 | test_collect_module_two_doctest_no_modulelevel | def | function | def test_collect_module_two_doctest_no_modulelevel(
self,
pytester: Pytester,
filename: str,
) -> None:
path = pytester.makepyfile(
**{
filename: """
'# Empty'
def my_func():
">>> magic = 42 "
def unu... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 76 | makepyfile | ref | function | path = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 96 | inline_genitems | ref | function | items, reprec = pytester.inline_genitems(p, "--doctest-modules")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 103 | test_simple_doctestfile | def | function | def test_simple_doctestfile(self, pytester: Pytester):
p = pytester.maketxtfile(
test_doc="""
>>> x = 1
>>> x == 1
_False
"""
)
reprec = pytester.inline_run(p)
reprec.assertoutcome(failed=1)
def test_new_pattern(self, pytes... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 104 | maketxtfile | ref | function | p = pytester.maketxtfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 111 | inline_run | ref | function | reprec = pytester.inline_run(p)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 112 | assertoutcome | ref | function | reprec.assertoutcome(failed=1)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 114 | test_new_pattern | def | function | def test_new_pattern(self, pytester: Pytester):
p = pytester.maketxtfile(
xdoc="""
>>> x = 1
>>> x == 1
_False
"""
)
reprec = pytester.inline_run(p, "--doctest-glob=x*.txt")
reprec.assertoutcome(failed=1)
def test_multiple_... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 115 | maketxtfile | ref | function | p = pytester.maketxtfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 122 | inline_run | ref | function | reprec = pytester.inline_run(p, "--doctest-glob=x*.txt")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 123 | assertoutcome | ref | function | reprec.assertoutcome(failed=1)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 125 | test_multiple_patterns | def | function | def test_multiple_patterns(self, pytester: Pytester):
"""Test support for multiple --doctest-glob arguments (#1255)."""
pytester.maketxtfile(
xdoc="""
>>> 1
1
"""
)
pytester.makefile(
".foo",
test="""
>>>... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 127 | maketxtfile | ref | function | pytester.maketxtfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 133 | makefile | ref | function | pytester.makefile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 140 | maketxtfile | ref | function | pytester.maketxtfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 149 | runpytest | ref | function | result = pytester.runpytest(*args)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 150 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*test.foo *", "*xdoc.txt *", "*2 passed*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 151 | runpytest | ref | function | result = pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 152 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*test_normal.txt *", "*1 passed*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 154 | parametrize | ref | function | @pytest.mark.parametrize(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 158 | test_encoding | def | function | def test_encoding(self, pytester, test_string, encoding):
"""Test support for doctest_encoding ini option."""
pytester.makeini(
"""
[pytest]
doctest_encoding={}
""".format(
encoding
)
)
doctest = """
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 160 | makeini | ref | function | pytester.makeini(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 177 | runpytest | ref | function | result = pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py | testing/test_doctest.py | 179 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*1 passed*"])
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.