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_tmpdir.py
testing/test_tmpdir.py
407
on_rm_rf_error
ref
function
on_rm_rf_error(os.open, str(fn), exc_info4, start_path=tmp_path)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_tmpdir.py
testing/test_tmpdir.py
412
on_rm_rf_error
ref
function
on_rm_rf_error(os.unlink, str(fn), exc_info5, start_path=tmp_path)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_tmpdir.py
testing/test_tmpdir.py
416
attempt_symlink_to
def
function
def attempt_symlink_to(path, to_path): """Try to make a symlink from "path" to "to_path", skipping in case this platform does not support it or we don't have sufficient privileges (common on Windows).""" try: Path(path).symlink_to(Path(to_path)) except OSError: pytest.skip("could not cre...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_tmpdir.py
testing/test_tmpdir.py
422
skip
ref
function
pytest.skip("could not create symbolic link")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_tmpdir.py
testing/test_tmpdir.py
425
test_tmpdir_equals_tmp_path
def
function
def test_tmpdir_equals_tmp_path(tmpdir, tmp_path): assert Path(tmpdir) == tmp_path
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_tmpdir.py
testing/test_tmpdir.py
429
test_basetemp_with_read_only_files
def
function
def test_basetemp_with_read_only_files(pytester: Pytester) -> None: """Integration test for #5524""" pytester.makepyfile( """ import os import stat def test(tmp_path): fn = tmp_path / 'foo.txt' fn.write_text('hello') mode = os.stat(str(fn)).st...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_tmpdir.py
testing/test_tmpdir.py
431
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_tmpdir.py
testing/test_tmpdir.py
443
runpytest
ref
function
result = pytester.runpytest("--basetemp=tmp")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_tmpdir.py
testing/test_tmpdir.py
446
runpytest
ref
function
result = pytester.runpytest("--basetemp=tmp")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_tmpdir.py
testing/test_tmpdir.py
450
test_tmp_path_factory_handles_invalid_dir_characters
def
function
def test_tmp_path_factory_handles_invalid_dir_characters( tmp_path_factory: TempPathFactory, monkeypatch: MonkeyPatch
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_tmpdir.py
testing/test_tmpdir.py
457
getbasetemp
ref
function
p = tmp_path_factory.getbasetemp()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_tmpdir.py
testing/test_tmpdir.py
461
skipif
ref
function
@pytest.mark.skipif(not hasattr(os, "getuid"), reason="checks unix permissions")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_tmpdir.py
testing/test_tmpdir.py
462
test_tmp_path_factory_create_directory_with_safe_permissions
def
function
def test_tmp_path_factory_create_directory_with_safe_permissions( tmp_path: Path, monkeypatch: MonkeyPatch
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_tmpdir.py
testing/test_tmpdir.py
467
setenv
ref
function
monkeypatch.setenv("PYTEST_DEBUG_TEMPROOT", str(tmp_path))
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_tmpdir.py
testing/test_tmpdir.py
468
TempPathFactory
ref
function
tmp_factory = TempPathFactory(None, lambda *args: None, _ispytest=True)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_tmpdir.py
testing/test_tmpdir.py
469
getbasetemp
ref
function
basetemp = tmp_factory.getbasetemp()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_tmpdir.py
testing/test_tmpdir.py
477
skipif
ref
function
@pytest.mark.skipif(not hasattr(os, "getuid"), reason="checks unix permissions")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_tmpdir.py
testing/test_tmpdir.py
478
test_tmp_path_factory_fixes_up_world_readable_permissions
def
function
def test_tmp_path_factory_fixes_up_world_readable_permissions( tmp_path: Path, monkeypatch: MonkeyPatch
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_tmpdir.py
testing/test_tmpdir.py
487
setenv
ref
function
monkeypatch.setenv("PYTEST_DEBUG_TEMPROOT", str(tmp_path))
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_tmpdir.py
testing/test_tmpdir.py
488
TempPathFactory
ref
function
tmp_factory = TempPathFactory(None, lambda *args: None, _ispytest=True)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_tmpdir.py
testing/test_tmpdir.py
489
getbasetemp
ref
function
basetemp = tmp_factory.getbasetemp()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_tmpdir.py
testing/test_tmpdir.py
495
TempPathFactory
ref
function
tmp_factory = TempPathFactory(None, lambda *args: None, _ispytest=True)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_tmpdir.py
testing/test_tmpdir.py
496
getbasetemp
ref
function
basetemp = tmp_factory.getbasetemp()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
10
test_simple_unittest
def
function
def test_simple_unittest(pytester: Pytester) -> None: testpath = pytester.makepyfile( """ import unittest class MyTestCase(unittest.TestCase): def testpassing(self): self.assertEqual('foo', 'foo') def test_failing(self): self.assertEqua...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
11
makepyfile
ref
function
testpath = pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
21
inline_run
ref
function
reprec = pytester.inline_run(testpath)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
22
matchreport
ref
function
assert reprec.matchreport("testpassing").passed
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
23
matchreport
ref
function
assert reprec.matchreport("test_failing").failed
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
26
test_runTest_method
def
function
def test_runTest_method(pytester: Pytester) -> None: pytester.makepyfile( """ import unittest class MyTestCaseWithRunTest(unittest.TestCase): def runTest(self): self.assertEqual('foo', 'foo') class MyTestCaseWithoutRunTest(unittest.TestCase): d...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
27
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
40
runpytest
ref
function
result = pytester.runpytest("-v")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
41
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
50
test_isclasscheck_issue53
def
class
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
51
makepyfile
ref
function
testpath = pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
60
runpytest
ref
function
result = pytester.runpytest(testpath)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
64
test_setup
def
function
def test_setup(pytester: Pytester) -> None: testpath = pytester.makepyfile( """ import unittest class MyTestCase(unittest.TestCase): def setUp(self): self.foo = 1 def setup_method(self, method): self.foo2 = 1 def test_both(s...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
65
makepyfile
ref
function
testpath = pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
81
inline_run
ref
function
reprec = pytester.inline_run("-s", testpath)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
82
matchreport
ref
function
assert reprec.matchreport("test_both", when="call").passed
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
83
matchreport
ref
function
rep = reprec.matchreport("test_both", when="teardown")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
87
test_setUpModule
def
function
def test_setUpModule(pytester: Pytester) -> None: testpath = pytester.makepyfile( """ values = [] def setUpModule(): values.append(1) def tearDownModule(): del values[0] def test_hello(): assert values == [1] def test_world(): ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
88
makepyfile
ref
function
testpath = pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
105
runpytest
ref
function
result = pytester.runpytest(testpath)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
106
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*2 passed*"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
109
test_setUpModule_failing_no_teardown
def
function
def test_setUpModule_failing_no_teardown(pytester: Pytester) -> None: testpath = pytester.makepyfile( """ values = [] def setUpModule(): 0/0 def tearDownModule(): values.append(1) def test_hello(): pass """ ) reprec = pyteste...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
110
makepyfile
ref
function
testpath = pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
124
inline_run
ref
function
reprec = pytester.inline_run(testpath)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
125
assertoutcome
ref
function
reprec.assertoutcome(passed=0, failed=1)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
126
getcalls
ref
function
call = reprec.getcalls("pytest_runtest_setup")[0]
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
130
test_new_instances
def
function
def test_new_instances(pytester: Pytester) -> None: testpath = pytester.makepyfile( """ import unittest class MyTestCase(unittest.TestCase): def test_func1(self): self.x = 2 def test_func2(self): assert not hasattr(self, 'x') """ ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
131
makepyfile
ref
function
testpath = pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
141
inline_run
ref
function
reprec = pytester.inline_run(testpath)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
142
assertoutcome
ref
function
reprec.assertoutcome(passed=2)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
145
test_function_item_obj_is_instance
def
function
def test_function_item_obj_is_instance(pytester: Pytester) -> None: """item.obj should be a bound method on unittest.TestCase function items (#5390).""" pytester.makeconftest( """ def pytest_runtest_makereport(item, call): if call.when == 'call': class_ = item.parent....
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
147
makeconftest
ref
function
pytester.makeconftest(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
155
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
164
runpytest_inprocess
ref
function
result = pytester.runpytest_inprocess()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
165
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["* 1 passed in*"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
168
test_teardown
def
function
def test_teardown(pytester: Pytester) -> None: testpath = pytester.makepyfile( """ import unittest class MyTestCase(unittest.TestCase): values = [] def test_one(self): pass def tearDown(self): self.values.append(None) ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
169
makepyfile
ref
function
testpath = pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
183
inline_run
ref
function
reprec = pytester.inline_run(testpath)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
184
countoutcomes
ref
function
passed, skipped, failed = reprec.countoutcomes()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
190
test_teardown_issue1649
def
function
def test_teardown_issue1649(pytester: Pytester) -> None: """ Are TestCase objects cleaned up? Often unittest TestCase objects set attributes that are large and expensive during setUp. The TestCase will not be cleaned up if the test fails, because it would then exist in the stackframe. """ t...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
198
makepyfile
ref
function
testpath = pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
209
inline_run
ref
function
pytester.inline_run("-s", testpath)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
215
test_unittest_skip_issue148
def
function
def test_unittest_skip_issue148(pytester: Pytester) -> None: testpath = pytester.makepyfile( """ import unittest @unittest.skip("hello") class MyTestCase(unittest.TestCase): @classmethod def setUpClass(self): xxx def test_one(self)...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
216
makepyfile
ref
function
testpath = pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
232
inline_run
ref
function
reprec = pytester.inline_run(testpath)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
233
assertoutcome
ref
function
reprec.assertoutcome(skipped=1)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
236
test_method_and_teardown_failing_reporting
def
function
def test_method_and_teardown_failing_reporting(pytester: Pytester) -> None: pytester.makepyfile( """ import unittest class TC(unittest.TestCase): def tearDown(self): assert 0, "down1" def test_method(self): assert _False, "down2" ""...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
237
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
247
runpytest
ref
function
result = pytester.runpytest("-s")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
249
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
260
test_setup_failure_is_shown
def
function
def test_setup_failure_is_shown(pytester: Pytester) -> None: pytester.makepyfile( """ import unittest import pytest class TC(unittest.TestCase): def setUp(self): assert 0, "down1" def test_method(self): print("never42") ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
261
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
273
runpytest
ref
function
result = pytester.runpytest("-s")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
275
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*setUp*", "*assert 0*down1*", "*1 failed*"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
276
no_fnmatch_line
ref
function
result.stdout.no_fnmatch_line("*never42*")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
279
test_setup_setUpClass
def
function
def test_setup_setUpClass(pytester: Pytester) -> None: testpath = pytester.makepyfile( """ import unittest import pytest class MyTestCase(unittest.TestCase): x = 0 @classmethod def setUpClass(cls): cls.x += 1 def test_fu...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
280
makepyfile
ref
function
testpath = pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
300
inline_run
ref
function
reprec = pytester.inline_run(testpath)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
301
assertoutcome
ref
function
reprec.assertoutcome(passed=3)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
304
test_fixtures_setup_setUpClass_issue8394
def
function
def test_fixtures_setup_setUpClass_issue8394(pytester: Pytester) -> None: pytester.makepyfile( """ import unittest class MyTestCase(unittest.TestCase): @classmethod def setUpClass(cls): pass def test_func1(self): pass ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
305
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
319
runpytest
ref
function
result = pytester.runpytest("--fixtures")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
321
no_fnmatch_line
ref
function
result.stdout.no_fnmatch_line("*no docstring available*")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
323
runpytest
ref
function
result = pytester.runpytest("--fixtures", "-v")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
325
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*no docstring available*"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
328
test_setup_class
def
class
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
329
makepyfile
ref
function
testpath = pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
347
inline_run
ref
function
reprec = pytester.inline_run(testpath)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
348
assertoutcome
ref
function
reprec.assertoutcome(passed=3)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
351
parametrize
ref
function
@pytest.mark.parametrize("type", ["Error", "Failure"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
352
test_testcase_adderrorandfailure_defers
def
function
def test_testcase_adderrorandfailure_defers(pytester: Pytester, type: str) -> None: pytester.makepyfile( """ from unittest import TestCase import pytest class MyTestCase(TestCase): def run(self, result): excinfo = pytest.raises(ZeroDivisionError, lambda: 0...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
353
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
371
runpytest
ref
function
result = pytester.runpytest()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
372
no_fnmatch_line
ref
function
result.stdout.no_fnmatch_line("*should not raise*")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
375
parametrize
ref
function
@pytest.mark.parametrize("type", ["Error", "Failure"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
376
test_testcase_custom_exception_info
def
function
def test_testcase_custom_exception_info(pytester: Pytester, type: str) -> None: pytester.makepyfile( """ from typing import Generic, TypeVar from unittest import TestCase import pytest, _pytest._code class MyTestCase(TestCase): def run(self, result): ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_unittest.py
testing/test_unittest.py
377
makepyfile
ref
function
pytester.makepyfile(