Extract [ClassName, method_name] from test path. Args: path: Test path like "test.module_name.ClassName.test_method" Returns: [ClassName, method_name] - last 2 elements
(path: str)
| 237 | |
| 238 | |
| 239 | def path_to_test_parts(path: str) -> list[str]: |
| 240 | """ |
| 241 | Extract [ClassName, method_name] from test path. |
| 242 | |
| 243 | Args: |
| 244 | path: Test path like "test.module_name.ClassName.test_method" |
| 245 | |
| 246 | Returns: |
| 247 | [ClassName, method_name] - last 2 elements |
| 248 | """ |
| 249 | parts = path.split(".") |
| 250 | return parts[-2:] |
| 251 | |
| 252 | |
| 253 | def _expand_stripped_to_children( |