Skip to content

Commit 9030ba8

Browse files
authored
test(bigquery): mock client in geography type support tests (#36559)
Use mock client in BigQueryWrapper to isolate tests from external dependencies
1 parent d4b841c commit 9030ba8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdks/python/apache_beam/io/gcp/bigquery_tools_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,7 +1112,7 @@ def test_geography_field_conversion(self):
11121112
field.name = 'location'
11131113
field.mode = 'NULLABLE'
11141114

1115-
wrapper = BigQueryWrapper()
1115+
wrapper = BigQueryWrapper(client=mock.Mock())
11161116

11171117
# Test various WKT formats
11181118
test_cases = [
@@ -1234,7 +1234,7 @@ def test_geography_with_special_characters(self):
12341234
field.name = 'complex_geo'
12351235
field.mode = 'NULLABLE'
12361236

1237-
wrapper = BigQueryWrapper()
1237+
wrapper = BigQueryWrapper(client=mock.Mock())
12381238

12391239
# Test complex WKT with various coordinate systems and precision
12401240
complex_wkt = (

0 commit comments

Comments
 (0)