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_capture.py | testing/test_capture.py | 63 | CaptureManager | ref | function | capman = CaptureManager(method)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 64 | start_global_capturing | ref | function | capman.start_global_capturing()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 65 | suspend_global_capture | ref | function | capman.suspend_global_capture()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 66 | read_global_capture | ref | function | outerr = capman.read_global_capture()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 68 | suspend_global_capture | ref | function | capman.suspend_global_capture()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 69 | read_global_capture | ref | function | outerr = capman.read_global_capture()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 72 | suspend_global_capture | ref | function | capman.suspend_global_capture()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 73 | read_global_capture | ref | function | out, err = capman.read_global_capture()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 78 | resume_global_capture | ref | function | capman.resume_global_capture()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 80 | suspend_global_capture | ref | function | capman.suspend_global_capture()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 81 | read_global_capture | ref | function | out, err = capman.read_global_capture()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 84 | stop_global_capturing | ref | function | capman.stop_global_capturing()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 86 | stop_capturing | ref | function | capouter.stop_capturing()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 89 | StdCaptureFD | ref | function | capouter = StdCaptureFD()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 91 | CaptureManager | ref | function | capman = CaptureManager("fd")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 92 | start_global_capturing | ref | function | capman.start_global_capturing()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 93 | raises | ref | function | pytest.raises(AssertionError, capman.start_global_capturing)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 94 | stop_global_capturing | ref | function | capman.stop_global_capturing()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 96 | stop_capturing | ref | function | capouter.stop_capturing()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 99 | parametrize | ref | function | @pytest.mark.parametrize("method", ["fd", "sys"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 102 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 112 | runpytest | ref | function | result = pytester.runpytest("--capture=%s" % method)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 113 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*1 passed*"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 116 | parametrize | ref | function | @pytest.mark.parametrize("method", ["fd", "sys"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 118 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 124 | runpytest | ref | function | result = pytester.runpytest("--capture=%s" % method)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 125 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*1 passed*"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 128 | test_collect_capturing | def | function | def test_collect_capturing(pytester: Pytester) -> None:
p = pytester.makepyfile(
"""
import sys
print("collect %s failure" % 13)
sys.stderr.write("collect %s_stderr failure" % 13)
import xyz42123
"""
)
result = pytester.runpytest(p)
result.stdout.fnmatch_line... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 129 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 138 | runpytest | ref | function | result = pytester.runpytest(p)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 139 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 149 | TestPerTestCapturing | def | class | test_capture_and_fixtures test_capture_scope_cache test_no_carry_over test_teardown_capturing test_teardown_capturing_final test_capturing_outerr |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 150 | test_capture_and_fixtures | def | function | def test_capture_and_fixtures(self, pytester: Pytester) -> None:
p = pytester.makepyfile(
"""
def setup_module(mod):
print("setup module")
def setup_function(function):
print("setup " + function.__name__)
def test_func1():
... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 151 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 165 | runpytest | ref | function | result = pytester.runpytest(p)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 166 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 176 | xfail | ref | function | @pytest.mark.xfail(reason="unimplemented feature")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 177 | test_capture_scope_cache | def | function | def test_capture_scope_cache(self, pytester: Pytester) -> None:
p = pytester.makepyfile(
"""
import sys
def setup_module(func):
print("module-setup")
def setup_function(func):
print("function-setup")
def test_func():... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 178 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 192 | runpytest | ref | function | result = pytester.runpytest(p)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 193 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 204 | test_no_carry_over | def | function | def test_no_carry_over(self, pytester: Pytester) -> None:
p = pytester.makepyfile(
"""
def test_func1():
print("in func1")
def test_func2():
print("in func2")
assert 0
"""
)
result = pytester.runpytes... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 205 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 214 | runpytest | ref | function | result = pytester.runpytest(p)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 219 | test_teardown_capturing | def | function | def test_teardown_capturing(self, pytester: Pytester) -> None:
p = pytester.makepyfile(
"""
def setup_function(function):
print("setup func1")
def teardown_function(function):
print("teardown func1")
assert 0
def... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 220 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 232 | runpytest | ref | function | result = pytester.runpytest(p)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 233 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 244 | test_teardown_capturing_final | def | function | def test_teardown_capturing_final(self, pytester: Pytester) -> None:
p = pytester.makepyfile(
"""
def teardown_module(mod):
print("teardown module")
assert 0
def test_func():
pass
"""
)
result = pytes... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 245 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 254 | runpytest | ref | function | result = pytester.runpytest(p)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 255 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 264 | test_capturing_outerr | def | function | def test_capturing_outerr(self, pytester: Pytester) -> None:
p1 = pytester.makepyfile(
"""\
import sys
def test_capturing():
print(42)
sys.stderr.write(str(23))
def test_capturing_error():
print(1)
... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 265 | makepyfile | ref | function | p1 = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 277 | runpytest | ref | function | result = pytester.runpytest(p1)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 278 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 292 | TestLoggingInteraction | def | class | test_logging_stream_ownership test_logging_and_immediate_setupteardown test_logging_and_crossscope_fixtures test_conftestlogging_is_shown test_conftestlogging_and_test_logging test_logging_after_cap_stopped |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 293 | test_logging_stream_ownership | def | function | def test_logging_stream_ownership(self, pytester: Pytester) -> None:
p = pytester.makepyfile(
"""\
def test_logging():
import logging
import pytest
stream = capture.CaptureIO()
logging.basicConfig(stream=stream)
... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 294 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 304 | runpytest_subprocess | ref | function | result = pytester.runpytest_subprocess(p)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 307 | test_logging_and_immediate_setupteardown | def | function | def test_logging_and_immediate_setupteardown(self, pytester: Pytester) -> None:
p = pytester.makepyfile(
"""\
import logging
def setup_function(function):
logging.warning("hello1")
def test_logging():
logging.warning("hello2")
... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 308 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 325 | runpytest_subprocess | ref | function | result = pytester.runpytest_subprocess(p, *optargs)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 327 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 333 | test_logging_and_crossscope_fixtures | def | function | def test_logging_and_crossscope_fixtures(self, pytester: Pytester) -> None:
p = pytester.makepyfile(
"""\
import logging
def setup_module(function):
logging.warning("hello1")
def test_logging():
logging.warning("hello2")
... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 334 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 351 | runpytest_subprocess | ref | function | result = pytester.runpytest_subprocess(p, *optargs)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 353 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 359 | test_conftestlogging_is_shown | def | function | def test_conftestlogging_is_shown(self, pytester: Pytester) -> None:
pytester.makeconftest(
"""\
import logging
logging.basicConfig()
logging.warning("hello435")
"""
)
# make sure that logging is still captured in tests
... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 360 | makeconftest | ref | function | pytester.makeconftest(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 368 | runpytest_subprocess | ref | function | result = pytester.runpytest_subprocess("-s", "-p", "no:capturelog")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 370 | fnmatch_lines | ref | function | result.stderr.fnmatch_lines(["WARNING*hello435*"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 373 | test_conftestlogging_and_test_logging | def | function | def test_conftestlogging_and_test_logging(self, pytester: Pytester) -> None:
pytester.makeconftest(
"""\
import logging
logging.basicConfig()
"""
)
# make sure that logging is still captured in tests
p = pytester.makepyfile(
... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 374 | makeconftest | ref | function | pytester.makeconftest(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 381 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 389 | runpytest_subprocess | ref | function | result = pytester.runpytest_subprocess(p, "-p", "no:capturelog")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 391 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["WARNING*hello433*"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 395 | test_logging_after_cap_stopped | def | function | def test_logging_after_cap_stopped(self, pytester: Pytester) -> None:
pytester.makeconftest(
"""\
import pytest
import logging
log = logging.getLogger(__name__)
@pytest.fixture
def log_on_teardown():
... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 396 | makeconftest | ref | function | pytester.makeconftest(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 410 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 419 | runpytest_subprocess | ref | function | result = pytester.runpytest_subprocess(p, "--log-cli-level", "info")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 421 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 430 | TestCaptureFixture | def | class | test_std_functional test_capsyscapfd test_capturing_getfixturevalue test_capsyscapfdbinary test_capture_is_represented_on_failure_issue128 test_stdfd_functional test_cafd_preserves_newlines test_capfdbinary test_capsysbinary test_partial_setup_failure test_keyboardinterrupt_disables_capturing test_capture_and_logging t... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 431 | parametrize | ref | function | @pytest.mark.parametrize("opt", [[], ["-s"]])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 432 | test_std_functional | def | function | def test_std_functional(self, pytester: Pytester, opt) -> None:
reprec = pytester.inline_runsource(
"""\
def test_hello(capsys):
print(42)
out, err = capsys.readouterr()
assert out.startswith("42")
""",
*opt,
... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 433 | inline_runsource | ref | function | reprec = pytester.inline_runsource(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 442 | assertoutcome | ref | function | reprec.assertoutcome(passed=1)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 444 | test_capsyscapfd | def | function | def test_capsyscapfd(self, pytester: Pytester) -> None:
p = pytester.makepyfile(
"""\
def test_one(capsys, capfd):
pass
def test_two(capfd, capsys):
pass
"""
)
result = pytester.runpytest(p)
result.stdout... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 445 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 453 | runpytest | ref | function | result = pytester.runpytest(p)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 454 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 464 | test_capturing_getfixturevalue | def | function | def test_capturing_getfixturevalue(self, pytester: Pytester) -> None:
"""Test that asking for "capfd" and "capsys" using request.getfixturevalue
in the same test is an error.
"""
pytester.makepyfile(
"""\
def test_one(capsys, request):
request.... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 468 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 476 | runpytest | ref | function | result = pytester.runpytest()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 477 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 487 | test_capsyscapfdbinary | def | function | def test_capsyscapfdbinary(self, pytester: Pytester) -> None:
p = pytester.makepyfile(
"""\
def test_one(capsys, capfdbinary):
pass
"""
)
result = pytester.runpytest(p)
result.stdout.fnmatch_lines(
["*ERROR*setup*test_on... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py | testing/test_capture.py | 488 | makepyfile | ref | function | p = pytester.makepyfile(
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.