(
node: ast.expr | ast.stmt, names: Sequence[str], line: str
)
| 65 | |
| 66 | |
| 67 | def is_misnamed_test_class( |
| 68 | node: ast.expr | ast.stmt, names: Sequence[str], line: str |
| 69 | ) -> bool: |
| 70 | return ( |
| 71 | isinstance(node, ast.ClassDef) |
| 72 | and not node.name.startswith("Test") |
| 73 | and names.count(node.name) == 0 |
| 74 | and not any(_is_register_dtype(decorator) for decorator in node.decorator_list) |
| 75 | and PRAGMA not in line |
| 76 | ) |
| 77 | |
| 78 | |
| 79 | def main(content: str, file: str) -> int: |
no test coverage detected