Skip to content

Commit 4ab201c

Browse files
committed
improve test style
1 parent 510e56d commit 4ab201c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/fast/test_template.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,8 @@ def __duckdb_template__(self, **kwargs) -> FakeInterpolation:
697697

698698
t = template(InterpolationReturner())
699699
compiled = t.compile()
700-
assert 42 in compiled.params.values()
700+
expected = CompiledSql(sql="$p0_val", params={"p0_val": 42})
701+
assert compiled == expected
701702

702703
def test_supports_duckdb_template_priority_over_iterable(self):
703704
class IterableWithTemplate:

0 commit comments

Comments
 (0)