Skip to content

Commit

Permalink
feat: Populate lines collection within helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Jun 7, 2024
1 parent 40db38d commit ab2e947
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/griffe/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ def temporary_visited_module(
modules_collection=modules_collection,
)
module.modules_collection[module_name] = module
module.lines_collection[path] = code.splitlines()
yield module


Expand Down Expand Up @@ -244,6 +245,7 @@ def temporary_inspected_module(
modules_collection=modules_collection,
)
module.modules_collection[module_name] = module
module.lines_collection[path] = code.splitlines()
yield module
finally:
if module_name in sys.modules:
Expand Down

0 comments on commit ab2e947

Please sign in to comment.