(tests, *, testdir: StrPath | None = None,
exclude: Container[str] = (),
split_test_dirs=SPLITTESTDIRS)
| 62 | |
| 63 | |
| 64 | def split_test_packages(tests, *, testdir: StrPath | None = None, |
| 65 | exclude: Container[str] = (), |
| 66 | split_test_dirs=SPLITTESTDIRS) -> list[TestName]: |
| 67 | testdir = findtestdir(testdir) |
| 68 | splitted = [] |
| 69 | for name in tests: |
| 70 | if name in split_test_dirs: |
| 71 | subdir = os.path.join(testdir, name) |
| 72 | splitted.extend(findtests(testdir=subdir, exclude=exclude, |
| 73 | split_test_dirs=split_test_dirs, |
| 74 | base_mod=name)) |
| 75 | else: |
| 76 | splitted.append(name) |
| 77 | return splitted |
| 78 | |
| 79 | |
| 80 | def _list_cases(suite: unittest.TestSuite) -> None: |
no test coverage detected