Skip to content

Commit b93e006

Browse files
committed
Fix duplicate macro test assertions to match dbt-adapters error message
The DuplicateMacroInPackageError in dbt-adapters uses "dbt found multiple macros named" but the tests still asserted the old wording "dbt found two macros named". Update assertions to match. Relates to #10387 https://claude.ai/code/session_014vwk3tJhceD1QrNWL652Qn
1 parent c8ddc4d commit b93e006

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/functional/duplicates/test_duplicate_macro.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def macros(self):
4141
}
4242

4343
def test_duplicate_macros(self, project):
44-
message = 'dbt found two macros named "some_macro" in the project'
44+
message = 'dbt found multiple macros named "some_macro" in the project'
4545
with pytest.raises(CompilationError) as exc:
4646
run_dbt(["parse"])
4747
exc_str = " ".join(str(exc.value).split()) # flatten all whitespace
@@ -62,7 +62,7 @@ def macros(self):
6262
}
6363

6464
def test_duplicate_macros(self, project):
65-
message = 'dbt found two macros named "some_macro" in the project'
65+
message = 'dbt found multiple macros named "some_macro" in the project'
6666
with pytest.raises(CompilationError) as exc:
6767
run_dbt(["compile"])
6868
exc_str = " ".join(str(exc.value).split()) # flatten all whitespace

0 commit comments

Comments
 (0)