Skip to content

Commit 997990f

Browse files
Require AST import-helper invocation in guarded modules
Co-authored-by: Shri Sukhani <shrisukhani@users.noreply.github.com>
1 parent c558619 commit 997990f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/test_ast_import_helper_usage.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ def test_ast_import_guard_modules_reuse_shared_import_helper():
1818
if "ast_import_utils import imports_collect_function_sources" not in module_text:
1919
violating_modules.append(module_path)
2020
continue
21+
if "imports_collect_function_sources(" not in module_text:
22+
violating_modules.append(module_path)
23+
continue
2124
if "def _imports_collect_function_sources" in module_text:
2225
violating_modules.append(module_path)
2326

0 commit comments

Comments
 (0)