Skip to content

Commit 2b666da

Browse files
authored
test(bigquery): skip geography test when expansion jars not available (#36555)
* test(bigquery): skip geography test when expansion jars not available Skip the geography storage write API test when EXPANSION_JARS environment variable is not set, indicating the required jars haven't been built * import os
1 parent 87db356 commit 2b666da

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"""Integration tests for BigQuery GEOGRAPHY data type support."""
2121

2222
import logging
23+
import os
2324
import secrets
2425
import time
2526
import unittest
@@ -428,7 +429,10 @@ def test_geography_complex_geometries(self):
428429
hc.assert_that(p, hc.all_of(*pipeline_verifiers))
429430

430431
@pytest.mark.uses_gcp_java_expansion_service
431-
@pytest.mark.it_postcommit
432+
@unittest.skipUnless(
433+
os.environ.get('EXPANSION_JARS'),
434+
"EXPANSION_JARS environment var is not provided, "
435+
"indicating that jars have not been built")
432436
def test_geography_storage_write_api(self):
433437
"""Test GEOGRAPHY with Storage Write API method."""
434438
table_name = 'geography_storage_write'

0 commit comments

Comments
 (0)