Skip to content

Commit e249c20

Browse files
fix: correct failing test in test_api.py
This commit fixes a unit test that was failing due to the changes in pyformat. The test is updated to pass a pre-quoted string, ensuring the resulting SQL is valid.
1 parent 9614f97 commit e249c20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unit/pandas/io/test_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def test_read_gbq_colab_calls_set_location(
108108
mock_with_default_session.return_value = mock_df
109109

110110
query_or_table = "SELECT {param1} AS param1"
111-
sample_pyformat_args = {"param1": "value1"}
111+
sample_pyformat_args = {"param1": "'value1'"}
112112
result = bf_io_api._read_gbq_colab(
113113
query_or_table, pyformat_args=sample_pyformat_args, dry_run=False
114114
)

0 commit comments

Comments
 (0)