Skip to content

Commit dd2d3bd

Browse files
Require AST helper invocation in boundary guard modules
Co-authored-by: Shri Sukhani <shrisukhani@users.noreply.github.com>
1 parent 549de93 commit dd2d3bd

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/test_ast_function_source_helper_usage.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ def test_ast_guard_modules_reuse_shared_collect_function_sources_helper():
2929
if "ast_function_source_utils import collect_function_sources" not in module_text:
3030
violating_modules.append(module_path)
3131
continue
32+
if "collect_function_sources(" not in module_text:
33+
violating_modules.append(module_path)
34+
continue
3235
if "def _collect_function_sources" in module_text:
3336
violating_modules.append(module_path)
3437

0 commit comments

Comments
 (0)