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_terminal.py
testing/test_terminal.py
542
fnmatch_lines
ref
function
result.stdout.fnmatch_lines("*== 3 tests collected in * ==*")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
544
runpytest
ref
function
result = pytester.runpytest("--collect-only", "test_collect_foo.py")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
545
fnmatch_lines
ref
function
result.stdout.fnmatch_lines("*== 1 test collected in * ==*")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
547
runpytest
ref
function
result = pytester.runpytest("--collect-only", "-k", "foo")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
548
fnmatch_lines
ref
function
result.stdout.fnmatch_lines("*== 2/3 tests collected (1 deselected) in * ==*")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
550
runpytest
ref
function
result = pytester.runpytest("--collect-only", "-k", "test_bar")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
551
fnmatch_lines
ref
function
result.stdout.fnmatch_lines("*== 1/3 tests collected (2 deselected) in * ==*")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
553
runpytest
ref
function
result = pytester.runpytest("--collect-only", "-k", "invalid")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
554
fnmatch_lines
ref
function
result.stdout.fnmatch_lines("*== no tests collected (3 deselected) in * ==*")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
557
runpytest
ref
function
result = pytester.runpytest("--collect-only", "no_tests_here")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
558
fnmatch_lines
ref
function
result.stdout.fnmatch_lines("*== no tests collected in * ==*")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
560
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
565
runpytest
ref
function
result = pytester.runpytest("--collect-only")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
566
fnmatch_lines
ref
function
result.stdout.fnmatch_lines("*== 3 tests collected, 1 error in * ==*")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
567
runpytest
ref
function
result = pytester.runpytest("--collect-only", "-k", "foo")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
568
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
573
TestFixtureReporting
def
class
test_setup_fixture_error test_teardown_fixture_error test_teardown_fixture_error_and_test_failure test_setup_teardown_output_and_test_failure
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
574
test_setup_fixture_error
def
function
def test_setup_fixture_error(self, pytester: Pytester) -> None: pytester.makepyfile( """ def setup_function(function): print("setup func") assert 0 def test_nada(): pass """ ) result = pytester.runpyt...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
575
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
584
runpytest
ref
function
result = pytester.runpytest()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
585
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
596
test_teardown_fixture_error
def
function
def test_teardown_fixture_error(self, pytester: Pytester) -> None: pytester.makepyfile( """ def test_nada(): pass def teardown_function(function): print("teardown func") assert 0 """ ) result = pytest...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
597
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
606
runpytest
ref
function
result = pytester.runpytest()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
607
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
618
test_teardown_fixture_error_and_test_failure
def
function
def test_teardown_fixture_error_and_test_failure(self, pytester: Pytester) -> None: pytester.makepyfile( """ def test_fail(): assert 0, "failingfunc" def teardown_function(function): print("teardown func") assert _False ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
619
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
629
runpytest
ref
function
result = pytester.runpytest()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
630
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
644
test_setup_teardown_output_and_test_failure
def
function
def test_setup_teardown_output_and_test_failure(self, pytester: Pytester) -> None: """Test for issue #442.""" pytester.makepyfile( """ def setup_function(function): print("setup func") def test_fail(): assert 0, "failingfunc" ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
646
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
658
runpytest
ref
function
result = pytester.runpytest()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
659
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
673
TestTerminalFunctional
def
class
test_deselected test_deselected_with_hookwrapper test_show_deselected_items_using_markexpr_before_test_execution test_no_skip_summary_if_failure test_passes test_header_trailer_info test_no_header_trailer_info test_header test_header_absolute_testpath test_no_header test_no_summary test_showlocals test_showlocals_short...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
674
test_deselected
def
function
def test_deselected(self, pytester: Pytester) -> None: testpath = pytester.makepyfile( """ def test_one(): pass def test_two(): pass def test_three(): pass """ ) ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
675
makepyfile
ref
function
testpath = pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
685
runpytest
ref
function
result = pytester.runpytest("-k", "test_two:", testpath)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
686
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
691
test_deselected_with_hookwrapper
def
function
def test_deselected_with_hookwrapper(self, pytester: Pytester) -> None: pytester.makeconftest( """ import pytest @pytest.hookimpl(hookwrapper=_True) def pytest_collection_modifyitems(config, items): yield deselected = items.pop...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
692
makeconftest
ref
function
pytester.makeconftest(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
703
makepyfile
ref
function
testpath = pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
713
runpytest
ref
function
result = pytester.runpytest(testpath)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
714
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
722
test_show_deselected_items_using_markexpr_before_test_execution
def
function
def test_show_deselected_items_using_markexpr_before_test_execution( self, pytester: Pytester ) -> None: pytester.makepyfile( test_show_deselected=""" import pytest @pytest.mark.foo def test_foobar(): pass @pytest.mark...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
725
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
741
runpytest
ref
function
result = pytester.runpytest("-m", "not foo")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
742
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
749
no_fnmatch_line
ref
function
result.stdout.no_fnmatch_line("*= 1 deselected =*")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
752
test_no_skip_summary_if_failure
def
function
def test_no_skip_summary_if_failure(self, pytester: Pytester) -> None: pytester.makepyfile( """ import pytest def test_ok(): pass def test_fail(): assert 0 def test_skip(): pytest.skip("dontshow") ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
753
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
764
runpytest
ref
function
result = pytester.runpytest()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
768
test_passes
def
function
def test_passes(self, pytester: Pytester) -> None: p1 = pytester.makepyfile( """ def test_passes(): pass class TestClass(object): def test_method(self): pass """ ) old = p1.parent pytester...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
769
makepyfile
ref
function
p1 = pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
781
runpytest
ref
function
result = pytester.runpytest()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
784
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["test_passes.py ..*", "* 2 pass*"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
787
test_header_trailer_info
def
function
def test_header_trailer_info( self, monkeypatch: MonkeyPatch, pytester: Pytester, request ) -> None: monkeypatch.delenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD") pytester.makepyfile( """ def test_passes(): pass """ ) result = pytest...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
790
delenv
ref
function
monkeypatch.delenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
791
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
797
runpytest
ref
function
result = pytester.runpytest()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
799
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
814
list_plugin_distinfo
ref
function
if request.config.pluginmanager.list_plugin_distinfo():
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
815
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["plugins: *"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
817
test_no_header_trailer_info
def
function
def test_no_header_trailer_info( self, monkeypatch: MonkeyPatch, pytester: Pytester, request ) -> None: monkeypatch.delenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD") pytester.makepyfile( """ def test_passes(): pass """ ) result = pyt...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
820
delenv
ref
function
monkeypatch.delenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
821
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
827
runpytest
ref
function
result = pytester.runpytest("--no-header")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
829
no_fnmatch_line
ref
function
result.stdout.no_fnmatch_line(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
839
list_plugin_distinfo
ref
function
if request.config.pluginmanager.list_plugin_distinfo():
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
840
no_fnmatch_line
ref
function
result.stdout.no_fnmatch_line("plugins: *")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
842
test_header
def
function
def test_header(self, pytester: Pytester) -> None: pytester.path.joinpath("tests").mkdir() pytester.path.joinpath("gui").mkdir() # no ini file result = pytester.runpytest() result.stdout.fnmatch_lines(["rootdir: *test_header0"]) # with configfile pytester.ma...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
847
runpytest
ref
function
result = pytester.runpytest()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
848
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["rootdir: *test_header0"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
851
makeini
ref
function
pytester.makeini("""[pytest]""")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
852
runpytest
ref
function
result = pytester.runpytest()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
853
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["rootdir: *test_header0, configfile: tox.ini"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
856
makeini
ref
function
pytester.makeini(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
862
runpytest
ref
function
result = pytester.runpytest()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
863
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
868
runpytest
ref
function
result = pytester.runpytest("tests")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
869
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["rootdir: *test_header0, configfile: tox.ini"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
871
test_header_absolute_testpath
def
function
def test_header_absolute_testpath( self, pytester: Pytester, monkeypatch: MonkeyPatch ) -> None: """Regresstion test for #7814.""" tests = pytester.path.joinpath("tests") tests.mkdir() pytester.makepyprojecttoml( """ [tool.pytest.ini_options] ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
877
makepyprojecttoml
ref
function
pytester.makepyprojecttoml(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
885
runpytest
ref
function
result = pytester.runpytest()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
886
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
894
test_no_header
def
function
def test_no_header(self, pytester: Pytester) -> None: pytester.path.joinpath("tests").mkdir() pytester.path.joinpath("gui").mkdir() # with testpaths option, and not passing anything in the command-line pytester.makeini( """ [pytest] testpaths = te...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
899
makeini
ref
function
pytester.makeini(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
905
runpytest
ref
function
result = pytester.runpytest("--no-header")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
906
no_fnmatch_line
ref
function
result.stdout.no_fnmatch_line(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
911
runpytest
ref
function
result = pytester.runpytest("tests", "--no-header")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
912
no_fnmatch_line
ref
function
result.stdout.no_fnmatch_line("rootdir: *test_header0, inifile: tox.ini")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
914
test_no_summary
def
function
def test_no_summary(self, pytester: Pytester) -> None: p1 = pytester.makepyfile( """ def test_no_summary(): assert false """ ) result = pytester.runpytest(p1, "--no-summary") result.stdout.no_fnmatch_line("*= FAILURES =*") def test...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
915
makepyfile
ref
function
p1 = pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
921
runpytest
ref
function
result = pytester.runpytest(p1, "--no-summary")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
922
no_fnmatch_line
ref
function
result.stdout.no_fnmatch_line("*= FAILURES =*")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
924
test_showlocals
def
function
def test_showlocals(self, pytester: Pytester) -> None: p1 = pytester.makepyfile( """ def test_showlocals(): x = 3 y = "x" * 5000 assert 0 """ ) result = pytester.runpytest(p1, "-l") result.stdout.fnmatch_...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
925
makepyfile
ref
function
p1 = pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
933
runpytest
ref
function
result = pytester.runpytest(p1, "-l")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
934
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
942
test_showlocals_short
def
function
def test_showlocals_short(self, pytester: Pytester) -> None: p1 = pytester.makepyfile( """ def test_showlocals_short(): x = 3 y = "xxxx" assert 0 """ ) result = pytester.runpytest(p1, "-l", "--tb=short") ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_terminal.py
testing/test_terminal.py
943
makepyfile
ref
function
p1 = pytester.makepyfile(