Check whether the test case should be executed.
(self, test_case_name: str, test_case_regex: str)
| 354 | return filtered_test_cases |
| 355 | |
| 356 | def _should_be_executed(self, test_case_name: str, test_case_regex: str) -> bool: |
| 357 | """ |
| 358 | Check whether the test case should be executed. |
| 359 | """ |
| 360 | match = bool(re.match(test_case_regex, test_case_name)) |
| 361 | if self._test_cases_to_run: |
| 362 | return match and test_case_name in self._test_cases_to_run |
| 363 | |
| 364 | return match |
| 365 | |
| 366 | def _run_test_case( |
| 367 | self, test_case_method: MethodType, test_case_result: TestCaseResult |