Skip to content

Commit dd629fd

Browse files
committed
test fixes
1 parent a80518a commit dd629fd

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

integration_tests/tests/test_dbt_artifacts/test_microbatch_compiled_code.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,11 @@ def _with_microbatch_macro_file(dbt_project: DbtProject, macro_name: str):
9797
macro_path = (
9898
dbt_project.project_dir_path / "macros" / "microbatch.sql"
9999
)
100-
macro_sql = f"""{{% macro {macro_name}(arg_dict) %}}
100+
macro_sql = """
101+
{% macro __MACRO_NAME__(arg_dict) %}
101102
{{ return(elementary.get_incremental_microbatch_sql(arg_dict)) }}
102-
{{% endmacro %}}
103-
"""
103+
{% endmacro %}
104+
""".replace("__MACRO_NAME__", macro_name)
104105
if macro_path.exists():
105106
raise FileExistsError(f"Expected no macro file at {macro_path}")
106107

0 commit comments

Comments
 (0)