(args, modules)
| 225 | |
| 226 | |
| 227 | def args_for_random_tests(args, modules): |
| 228 | if not args: |
| 229 | return args |
| 230 | first = args[0] |
| 231 | if first.startswith('random'): |
| 232 | random_arg = first[6:] |
| 233 | num_tests, base_module, relevant_modes = get_random_test_parameters(random_arg) |
| 234 | for m in modules: |
| 235 | if hasattr(m, base_module): |
| 236 | base = getattr(m, base_module) |
| 237 | new_args = choose_random_tests(base, num_tests, relevant_modes) |
| 238 | print_random_test_statistics(num_tests) |
| 239 | return new_args |
| 240 | return args |
| 241 | |
| 242 | |
| 243 | def get_random_test_parameters(arg): |
no test coverage detected