Skip to content

Commit ea00a1b

Browse files
committed
test(integration): pass typed x_database_id to execute_saved_query
1 parent 7f5aa44 commit ea00a1b

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

tests/integration/test_saved_query_versioning.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,10 @@ def test_saved_query_versioning(
5050
f"expected versions 1,2,3 in {sorted(version_numbers)}"
5151
)
5252

53-
# execute_saved_query runs SQL, so it also needs the database scope.
54-
# The endpoint has no typed x_database_id param yet, so set the header
55-
# directly via the _headers override.
53+
# execute_saved_query runs SQL, so it also needs the database scope,
54+
# passed via the typed x_database_id parameter.
5655
executed = saved_queries_api.execute_saved_query(
57-
created.id, _headers={"X-Database-Id": database_id}
56+
created.id, x_database_id=database_id
5857
)
5958
assert executed.row_count == 1
6059
assert executed.rows == [[3]]

0 commit comments

Comments
 (0)