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_unittest.py
testing/test_unittest.py
88
makepyfile
ref
function
testpath = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
105
runpytest
ref
function
result = pytester.runpytest(testpath)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
106
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*2 passed*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
110
makepyfile
ref
function
testpath = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
124
inline_run
ref
function
reprec = pytester.inline_run(testpath)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
125
assertoutcome
ref
function
reprec.assertoutcome(passed=0, failed=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
126
getcalls
ref
function
call = reprec.getcalls("pytest_runtest_setup")[0]
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
131
makepyfile
ref
function
testpath = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
141
inline_run
ref
function
reprec = pytester.inline_run(testpath)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
142
assertoutcome
ref
function
reprec.assertoutcome(passed=2)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
147
makeconftest
ref
function
pytester.makeconftest(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
155
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
164
runpytest_inprocess
ref
function
result = pytester.runpytest_inprocess()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
165
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["* 1 passed in*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
169
makepyfile
ref
function
testpath = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
183
inline_run
ref
function
reprec = pytester.inline_run(testpath)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
184
countoutcomes
ref
function
passed, skipped, failed = reprec.countoutcomes()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
198
makepyfile
ref
function
testpath = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
209
inline_run
ref
function
pytester.inline_run("-s", testpath)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
216
makepyfile
ref
function
testpath = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
232
inline_run
ref
function
reprec = pytester.inline_run(testpath)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
233
assertoutcome
ref
function
reprec.assertoutcome(skipped=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
237
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
247
runpytest
ref
function
result = pytester.runpytest("-s")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
249
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
261
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
273
runpytest
ref
function
result = pytester.runpytest("-s")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
276
no_fnmatch_line
ref
function
result.stdout.no_fnmatch_line("*never42*")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
280
makepyfile
ref
function
testpath = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
300
inline_run
ref
function
reprec = pytester.inline_run(testpath)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
301
assertoutcome
ref
function
reprec.assertoutcome(passed=3)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
305
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
319
runpytest
ref
function
result = pytester.runpytest("--fixtures")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
321
no_fnmatch_line
ref
function
result.stdout.no_fnmatch_line("*no docstring available*")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
323
runpytest
ref
function
result = pytester.runpytest("--fixtures", "-v")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
325
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*no docstring available*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
328
test_setup_class
def
class
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
329
makepyfile
ref
function
testpath = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
347
inline_run
ref
function
reprec = pytester.inline_run(testpath)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
348
assertoutcome
ref
function
reprec.assertoutcome(passed=3)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
351
parametrize
ref
function
@pytest.mark.parametrize("type", ["Error", "Failure"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
353
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
371
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
372
no_fnmatch_line
ref
function
result.stdout.no_fnmatch_line("*should not raise*")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
375
parametrize
ref
function
@pytest.mark.parametrize("type", ["Error", "Failure"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/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/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
377
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
410
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
411
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
420
test_testcase_totally_incompatible_exception_info
def
function
def test_testcase_totally_incompatible_exception_info(pytester: Pytester) -> None: import _pytest.unittest (item,) = pytester.getitems( """ from unittest import TestCase class MyTestCase(TestCase): def test_hello(self): pass """ ) assert isinstanc...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
423
getitems
ref
function
(item,) = pytester.getitems(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
432
addError
ref
function
item.addError(None, 42) # type: ignore[arg-type]
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
435
getrepr
ref
function
assert "ERROR: Unknown Incompatible" in str(excinfo.pop(0).getrepr())
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
438
test_module_level_pytestmark
def
function
def test_module_level_pytestmark(pytester: Pytester) -> None: testpath = pytester.makepyfile( """ import unittest import pytest pytestmark = pytest.mark.xfail class MyTestCase(unittest.TestCase): def test_func1(self): assert 0 """ ) rep...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
439
makepyfile
ref
function
testpath = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
449
inline_run
ref
function
reprec = pytester.inline_run(testpath, "-s")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
450
assertoutcome
ref
function
reprec.assertoutcome(skipped=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
453
TestTrialUnittest
def
class
setup_class test_trial_testcase_runtest_not_collected test_trial_exceptions_with_skips test_trial_error test_trial_pdb test_trial_testcase_skip_property test_trial_testfunction_skip_property test_trial_testcase_todo_property test_trial_testfunction_todo_property
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
454
setup_class
def
class
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
455
importorskip
ref
function
cls.ut = pytest.importorskip("twisted.trial.unittest")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
460
test_trial_testcase_runtest_not_collected
def
function
def test_trial_testcase_runtest_not_collected(self, pytester: Pytester) -> None: pytester.makepyfile( """ from twisted.trial.unittest import TestCase class TC(TestCase): def test_hello(self): pass """ ) reprec =...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
461
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
470
inline_run
ref
function
reprec = pytester.inline_run(*self.ignore_unclosed_socket_warning)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
471
assertoutcome
ref
function
reprec.assertoutcome(passed=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
472
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
481
inline_run
ref
function
reprec = pytester.inline_run(*self.ignore_unclosed_socket_warning)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
482
assertoutcome
ref
function
reprec.assertoutcome(passed=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
484
test_trial_exceptions_with_skips
def
function
def test_trial_exceptions_with_skips(self, pytester: Pytester) -> None: pytester.makepyfile( """ from twisted.trial import unittest import pytest class TC(unittest.TestCase): def test_hello(self): pytest.skip("skip_in_method...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
485
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
519
runpytest
ref
function
result = pytester.runpytest("-rxs", *self.ignore_unclosed_socket_warning)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
520
fnmatch_lines_random
ref
function
result.stdout.fnmatch_lines_random(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
534
test_trial_error
def
function
def test_trial_error(self, pytester: Pytester) -> None: pytester.makepyfile( """ from twisted.trial.unittest import TestCase from twisted.internet.defer import Deferred from twisted.internet import reactor class TC(TestCase): def t...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
535
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
572
runpytest
ref
function
result = pytester.runpytest(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
575
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
598
test_trial_pdb
def
function
def test_trial_pdb(self, pytester: Pytester) -> None: p = pytester.makepyfile( """ from twisted.trial import unittest import pytest class TC(unittest.TestCase): def test_hello(self): assert 0, "hellopdb" """ ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
599
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
608
spawn_pytest
ref
function
child = pytester.spawn_pytest(str(p))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
609
expect
ref
function
child.expect("hellopdb")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
610
sendeof
ref
function
child.sendeof()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
612
test_trial_testcase_skip_property
def
function
def test_trial_testcase_skip_property(self, pytester: Pytester) -> None: testpath = pytester.makepyfile( """ from twisted.trial import unittest class MyTestCase(unittest.TestCase): skip = 'dont run' def test_func(self): ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
613
makepyfile
ref
function
testpath = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
622
inline_run
ref
function
reprec = pytester.inline_run(testpath, "-s")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
623
assertoutcome
ref
function
reprec.assertoutcome(skipped=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
625
test_trial_testfunction_skip_property
def
function
def test_trial_testfunction_skip_property(self, pytester: Pytester) -> None: testpath = pytester.makepyfile( """ from twisted.trial import unittest class MyTestCase(unittest.TestCase): def test_func(self): pass test_func...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
626
makepyfile
ref
function
testpath = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
635
inline_run
ref
function
reprec = pytester.inline_run(testpath, "-s")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_unittest.py
testing/test_unittest.py
636
assertoutcome
ref
function
reprec.assertoutcome(skipped=1)