MCPcopy
hub / github.com/django/django / make_test_suite

Method make_test_suite

tests/test_runner/tests.py:69–88  ·  view source on GitHub ↗
(self, suite=None, suite_class=None)

Source from the content-addressed store, hash-verified

67 return suite
68
69 def make_test_suite(self, suite=None, suite_class=None):
70 class Tests1(unittest.TestCase):
71 def test1(self):
72 pass
73
74 def test2(self):
75 pass
76
77 class Tests2(unittest.TestCase):
78 def test1(self):
79 pass
80
81 def test2(self):
82 pass
83
84 return self.build_test_suite(
85 (Tests1, Tests2),
86 suite=suite,
87 suite_class=suite_class,
88 )
89
90 def assertTestNames(self, tests, expected):
91 # Each test.id() has a form like the following:

Calls 1

build_test_suiteMethod · 0.95

Tested by

no test coverage detected