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_cacheprovider.py | testing/test_cacheprovider.py | 1,044 | makeini | ref | function | pytester.makeini(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,050 | runpytest | ref | function | result = pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,051 | assert_outcomes | ref | function | result.assert_outcomes(failed=3)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,052 | runpytest | ref | function | result = pytester.runpytest("--lf")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,053 | assert_outcomes | ref | function | result.assert_outcomes(failed=3)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,056 | TestNewFirst | def | class | test_newfirst_usecase test_newfirst_parametrize |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,057 | test_newfirst_usecase | def | function | def test_newfirst_usecase(self, pytester: Pytester) -> None:
pytester.makepyfile(
**{
"test_1/test_1.py": """
def test_1(): assert 1
""",
"test_2/test_2.py": """
def test_1(): assert 1
""",
}
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,058 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,072 | runpytest | ref | function | result = pytester.runpytest("-v")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,073 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,077 | runpytest | ref | function | result = pytester.runpytest("-v", "--nf")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,078 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,085 | runpytest | ref | function | result = pytester.runpytest("--nf", "--collect-only", "-q")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,086 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,095 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,102 | syspathinsert | ref | function | pytester.syspathinsert()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,103 | runpytest | ref | function | result = pytester.runpytest("--nf", "-p", "myplugin", "--collect-only", "-q")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,104 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,113 | test_newfirst_parametrize | def | function | def test_newfirst_parametrize(self, pytester: Pytester) -> None:
pytester.makepyfile(
**{
"test_1/test_1.py": """
import pytest
@pytest.mark.parametrize('num', [1, 2])
def test_1(num): assert num
""",
"te... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,114 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,132 | runpytest | ref | function | result = pytester.runpytest("-v")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,133 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,142 | runpytest | ref | function | result = pytester.runpytest("-v", "--nf")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,143 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,160 | runpytest | ref | function | result = pytester.runpytest("-v", "--nf", "test_2/test_2.py")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,161 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,165 | runpytest | ref | function | result = pytester.runpytest("-v", "--nf")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,166 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,177 | TestReadme | def | class | check_readme test_readme_passed test_readme_failed |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,178 | check_readme | def | function | def check_readme(self, pytester: Pytester) -> bool:
config = pytester.parseconfigure()
assert config.cache is not None
readme = config.cache._cachedir.joinpath("README.md")
return readme.is_file()
def test_readme_passed(self, pytester: Pytester) -> None:
pytester.makepyf... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,179 | parseconfigure | ref | function | config = pytester.parseconfigure()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,184 | test_readme_passed | def | function | def test_readme_passed(self, pytester: Pytester) -> None:
pytester.makepyfile("def test_always_passes(): pass")
pytester.runpytest()
assert self.check_readme(pytester) is _True
def test_readme_failed(self, pytester: Pytester) -> None:
pytester.makepyfile("def test_always_fails()... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,185 | makepyfile | ref | function | pytester.makepyfile("def test_always_passes(): pass")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,186 | runpytest | ref | function | pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,187 | check_readme | ref | function | assert self.check_readme(pytester) is True
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,189 | test_readme_failed | def | function | def test_readme_failed(self, pytester: Pytester) -> None:
pytester.makepyfile("def test_always_fails(): assert 0")
pytester.runpytest()
assert self.check_readme(pytester) is _True
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,190 | makepyfile | ref | function | pytester.makepyfile("def test_always_fails(): assert 0")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,191 | runpytest | ref | function | pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,192 | check_readme | ref | function | assert self.check_readme(pytester) is True
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,195 | test_gitignore | def | function | def test_gitignore(pytester: Pytester) -> None:
"""Ensure we automatically create .gitignore file in the pytest_cache directory (#3286)."""
from _pytest.cacheprovider import Cache
config = pytester.parseconfig()
cache = Cache.for_config(config, _ispytest=_True)
cache.set("foo", "bar")
msg = "# ... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,199 | parseconfig | ref | function | config = pytester.parseconfig()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,200 | for_config | ref | function | cache = Cache.for_config(config, _ispytest=True)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,212 | test_preserve_keys_order | def | function | def test_preserve_keys_order(pytester: Pytester) -> None:
"""Ensure keys order is preserved when saving dicts (#9205)."""
from _pytest.cacheprovider import Cache
config = pytester.parseconfig()
cache = Cache.for_config(config, _ispytest=_True)
cache.set("foo", {"z": 1, "b": 2, "a": 3, "d": 10})
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,216 | parseconfig | ref | function | config = pytester.parseconfig()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,217 | for_config | ref | function | cache = Cache.for_config(config, _ispytest=True)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,223 | test_does_not_create_boilerplate_in_existing_dirs | def | function | def test_does_not_create_boilerplate_in_existing_dirs(pytester: Pytester) -> None:
from _pytest.cacheprovider import Cache
pytester.makeini(
"""
[pytest]
cache_dir = .
"""
)
config = pytester.parseconfig()
cache = Cache.for_config(config, _ispytest=_True)
cache.s... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,226 | makeini | ref | function | pytester.makeini(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,232 | parseconfig | ref | function | config = pytester.parseconfig()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,233 | for_config | ref | function | cache = Cache.for_config(config, _ispytest=True)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,236 | isdir | ref | function | assert os.path.isdir("v") # cache contents
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,241 | test_cachedir_tag | def | function | def test_cachedir_tag(pytester: Pytester) -> None:
"""Ensure we automatically create CACHEDIR.TAG file in the pytest_cache directory (#4278)."""
from _pytest.cacheprovider import Cache
from _pytest.cacheprovider import CACHEDIR_TAG_CONTENT
config = pytester.parseconfig()
cache = Cache.for_config(co... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,246 | parseconfig | ref | function | config = pytester.parseconfig()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_cacheprovider.py | testing/test_cacheprovider.py | 1,247 | for_config | ref | function | cache = Cache.for_config(config, _ispytest=True)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 27 | StdCaptureFD | def | function | def StdCaptureFD(
out: bool = _True, err: bool = _True, in_: bool = _True
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 30 | MultiCapture | ref | function | return capture.MultiCapture(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 31 | FDCapture | ref | function | in_=capture.FDCapture(0) if in_ else None,
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 32 | FDCapture | ref | function | out=capture.FDCapture(1) if out else None,
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 33 | FDCapture | ref | function | err=capture.FDCapture(2) if err else None,
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 37 | StdCapture | def | function | def StdCapture(
out: bool = _True, err: bool = _True, in_: bool = _True
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 40 | MultiCapture | ref | function | return capture.MultiCapture(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 41 | SysCapture | ref | function | in_=capture.SysCapture(0) if in_ else None,
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 42 | SysCapture | ref | function | out=capture.SysCapture(1) if out else None,
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 43 | SysCapture | ref | function | err=capture.SysCapture(2) if err else None,
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 47 | TeeStdCapture | def | function | def TeeStdCapture(
out: bool = _True, err: bool = _True, in_: bool = _True
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 50 | MultiCapture | ref | function | return capture.MultiCapture(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 51 | SysCapture | ref | function | in_=capture.SysCapture(0, tee=True) if in_ else None,
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 52 | SysCapture | ref | function | out=capture.SysCapture(1, tee=True) if out else None,
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 53 | SysCapture | ref | function | err=capture.SysCapture(2, tee=True) if err else None,
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 57 | TestCaptureManager | def | class | test_capturing_basic_api test_init_capturing |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 58 | parametrize | ref | function | @pytest.mark.parametrize("method", ["no", "sys", "fd"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 59 | test_capturing_basic_api | def | function | def test_capturing_basic_api(self, method) -> None:
capouter = StdCaptureFD()
old = sys.stdout, sys.stderr, sys.stdin
try:
capman = CaptureManager(method)
capman.start_global_capturing()
capman.suspend_global_capture()
outerr = capman.read_glob... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 60 | StdCaptureFD | ref | function | capouter = StdCaptureFD()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 63 | CaptureManager | ref | function | capman = CaptureManager(method)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 64 | start_global_capturing | ref | function | capman.start_global_capturing()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 65 | suspend_global_capture | ref | function | capman.suspend_global_capture()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 66 | read_global_capture | ref | function | outerr = capman.read_global_capture()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 68 | suspend_global_capture | ref | function | capman.suspend_global_capture()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 69 | read_global_capture | ref | function | outerr = capman.read_global_capture()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 72 | suspend_global_capture | ref | function | capman.suspend_global_capture()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 73 | read_global_capture | ref | function | out, err = capman.read_global_capture()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 78 | resume_global_capture | ref | function | capman.resume_global_capture()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 80 | suspend_global_capture | ref | function | capman.suspend_global_capture()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 81 | read_global_capture | ref | function | out, err = capman.read_global_capture()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 84 | stop_global_capturing | ref | function | capman.stop_global_capturing()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 86 | stop_capturing | ref | function | capouter.stop_capturing()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 88 | test_init_capturing | def | function | def test_init_capturing(self):
capouter = StdCaptureFD()
try:
capman = CaptureManager("fd")
capman.start_global_capturing()
pytest.raises(AssertionError, capman.start_global_capturing)
capman.stop_global_capturing()
finally:
capoute... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 89 | StdCaptureFD | ref | function | capouter = StdCaptureFD()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 91 | CaptureManager | ref | function | capman = CaptureManager("fd")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 92 | start_global_capturing | ref | function | capman.start_global_capturing()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 93 | raises | ref | function | pytest.raises(AssertionError, capman.start_global_capturing)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 94 | stop_global_capturing | ref | function | capman.stop_global_capturing()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 96 | stop_capturing | ref | function | capouter.stop_capturing()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 99 | parametrize | ref | function | @pytest.mark.parametrize("method", ["fd", "sys"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 100 | test_capturing_unicode | def | function | def test_capturing_unicode(pytester: Pytester, method: str) -> None:
obj = "'b\u00f6y'"
pytester.makepyfile(
"""\
# taken from issue 227 from nosetests
def test_unicode():
import sys
print(sys.stdout)
print(%s)
"""
% obj
)
resul... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 102 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 112 | runpytest | ref | function | result = pytester.runpytest("--capture=%s" % method)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 113 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*1 passed*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 116 | parametrize | ref | function | @pytest.mark.parametrize("method", ["fd", "sys"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 117 | test_capturing_bytes_in_utf8_encoding | def | function | def test_capturing_bytes_in_utf8_encoding(pytester: Pytester, method: str) -> None:
pytester.makepyfile(
"""\
def test_unicode():
print('b\\u00f6y')
"""
)
result = pytester.runpytest("--capture=%s" % method)
result.stdout.fnmatch_lines(["*1 passed*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 118 | makepyfile | ref | function | pytester.makepyfile(
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.