Skip to content

Commit 0475e79

Browse files
committed
fix failing tests after macro msg change
1 parent d3cb077 commit 0475e79

File tree

2 files changed

+47
-2
lines changed

2 files changed

+47
-2
lines changed

core/pyproject.toml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,51 @@ dependencies = [
6565
"pyyaml>=6.0",
6666
"daff>=1.3.46",
6767
"typing-extensions>=4.4",
68+
"dbt-adapters @ git+https://github.com/dbt-labs/dbt-adapters.git@main#subdirectory=dbt-adapters",
69+
"dbt-tests-adapter @ git+https://github.com/dbt-labs/dbt-adapters.git@main#subdirectory=dbt-tests-adapter",
70+
"dbt-common @ git+https://github.com/dbt-labs/dbt-common.git@main",
71+
"dbt-postgres @ git+https://github.com/dbt-labs/dbt-adapters.git@main#subdirectory=dbt-postgres",
72+
# Code quality
73+
"pre-commit~=3.7.0",
74+
"black>=24.3,<25.0",
75+
"flake8==4.0.1", # requires python <3.12
76+
"mypy==1.4.1", # update requires code fixes
77+
"isort==5.13.2",
78+
# Testing
79+
"pytest>=7.0,<8.0",
80+
"pytest-xdist~=3.6",
81+
"pytest-csv~=3.0",
82+
"pytest-cov",
83+
"pytest-dotenv",
84+
"pytest-ignore-test-results",
85+
"pytest-mock",
86+
"pytest-split",
87+
"pytest-logbook~=1.2",
88+
"logbook<1.9",
89+
"flaky",
90+
"freezegun>=1.5.1",
91+
"hypothesis",
92+
"mocker",
93+
# Debugging
94+
"ipdb",
95+
"ddtrace==2.21.3",
96+
# Documentation
97+
"docutils",
98+
"sphinx",
99+
# Type stubs
100+
"types-docutils",
101+
"types-PyYAML",
102+
"types-Jinja2",
103+
"types-jsonschema",
104+
"types-mock",
105+
"types-protobuf>=5.0,<6.0",
106+
"types-python-dateutil",
107+
"types-pytz",
108+
"types-requests",
109+
"types-setuptools",
110+
# Other
111+
"pip-tools",
112+
"protobuf>=6.0,<7.0",
68113
]
69114

70115
[project.urls]

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)