(file_path)
| 11 | |
| 12 | |
| 13 | def is_valid_backend(file_path): |
| 14 | with open(file_path, "r", encoding="utf-8") as file: |
| 15 | node = ast.parse(file.read()) |
| 16 | |
| 17 | # Check for presence of a dictionary named 'ed_info' |
| 18 | for item in node.body: |
| 19 | if isinstance(item, ast.Assign): |
| 20 | for target in item.targets: |
| 21 | if isinstance(target, ast.Name) and target.id == "ed_info": |
| 22 | return True |
| 23 | return False |
| 24 | |
| 25 | |
| 26 | def find_valid_backends(root_dir) -> dict: |
no test coverage detected