partition_suite_by_case
Partition a test suite by TestCase, preserving the order of tests.
def partition_suite_by_case(
suite: unittest.TestSuite
) - > list
Partition a test suite by TestCase, preserving the order of tests.
Parameters
| Name | Type | Description |
|---|---|---|
| suite | unittest.TestSuite | The original test suite containing various test cases to be grouped by their class type. |
Returns
| Type | Description |
|---|---|
list | A list of new suite instances, each containing a group of tests belonging to the same TestCase class. |