Skip to content

Commit 5ba7462

Browse files
committed
Attempt to fix the tests
1 parent 091ff58 commit 5ba7462

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

tests/core/test_integration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4268,7 +4268,7 @@ def test_dbt_dialect_with_normalization_strategy(init_and_plan_context: t.Callab
42684268
context, _ = init_and_plan_context(
42694269
"tests/fixtures/dbt/sushi_test", config="test_config_with_normalization_strategy"
42704270
)
4271-
assert context.default_dialect == "duckdb,normalization_strategy=UPPERCASE"
4271+
assert context.default_dialect == "duckdb,normalization_strategy=LOWERCASE"
42724272

42734273

42744274
@pytest.mark.parametrize(

tests/core/test_model.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2221,7 +2221,7 @@ def my_model(context, **kwargs):
22212221
m = model.get_registry()["my_model"].model(
22222222
module_path=Path("."),
22232223
path=Path("."),
2224-
dialect="duckdb",
2224+
dialect="duckdb,normalization_strategy=LOWERCASE",
22252225
)
22262226

22272227
assert list(m.pre_statements) == [
@@ -2231,14 +2231,14 @@ def my_model(context, **kwargs):
22312231
d.parse_one("DROP TABLE x"),
22322232
]
22332233
assert m.enabled
2234-
assert m.dialect == "duckdb"
2234+
assert m.dialect == "duckdb,normalization_strategy=lowercase"
22352235
assert m.depends_on == {'"foo"', '"bar"."baz"'}
2236-
assert m.columns_to_types == {"col": exp.DataType.build("int")}
2236+
assert m.columns_to_types == {"COL": exp.DataType.build("int")}
22372237
assert_exp_eq(
22382238
m.ctas_query(),
22392239
"""
22402240
SELECT
2241-
CAST(NULL AS INT) AS "col"
2241+
CAST(NULL AS INT) AS "COL"
22422242
FROM (VALUES
22432243
(1)) AS t(dummy)
22442244
WHERE

tests/fixtures/dbt/sushi_test/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616
test_config_with_normalization_strategy = sqlmesh_config(
1717
Path(__file__).parent,
1818
variables=variables,
19-
model_defaults=ModelDefaultsConfig(dialect="duckdb,normalization_strategy=UPPERCASE"),
19+
model_defaults=ModelDefaultsConfig(dialect="duckdb,normalization_strategy=LOWERCASE"),
2020
)

0 commit comments

Comments
 (0)