Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Commit 5d329d7

Browse files
committed
fix test
1 parent c12445a commit 5d329d7

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

tests/unit/bigquery/test_bigquery.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,9 +1153,16 @@ def test_add_graph_widget_with_schema(monkeypatch):
11531153

11541154
# Verify schema was retrieved and converted
11551155
assert bq_client.query.called
1156-
call_args = bq_client.query.call_args[0][0]
1157-
assert "INFORMATION_SCHEMA.PROPERTY_GRAPHS" in call_args
1158-
assert 'PROPERTY_GRAPH_NAME = "my_graph"' in call_args
1156+
call_args, call_kwargs = bq_client.query.call_args
1157+
query_str = call_args[0]
1158+
assert "INFORMATION_SCHEMA.PROPERTY_GRAPHS" in query_str
1159+
assert "PROPERTY_GRAPH_NAME = @graph_id" in query_str
1160+
1161+
# Verify query parameter
1162+
job_config = call_kwargs["job_config"]
1163+
param = job_config.query_parameters[0]
1164+
assert param.name == "graph_id"
1165+
assert param.value == "my_graph"
11591166

11601167
# Verify generate_visualization_html was called with the converted schema
11611168
assert gen_html_mock.called

0 commit comments

Comments
 (0)