Skip to content

Commit

Permalink
Merge branch 'main' into more-jinja-block-escapes
Browse files Browse the repository at this point in the history
  • Loading branch information
dave-connors-3 authored Jul 10, 2024
2 parents 66eba09 + 9a1efa1 commit 92a500b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion dbt_meshify/dbt_projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,9 +330,15 @@ def find_jinja_blocks(self) -> Dict[str, JinjaBlock]:
for unique_id, macro in self.manifest.macros.items():
block_type = "macro"
name = macro.name
top_level_folder = macro.path.split("/")[0]

if macro.package_name != self.name:
continue
if "tests/generic/" in macro.path:
if (
top_level_folder in self.project.test_paths
if self.project.test_paths
else ["tests"]
):
block_type = "test"
name = macro.name[5:]

Expand Down

0 comments on commit 92a500b

Please sign in to comment.