Skip to content

Commit 33414ba

Browse files
committed
fix(bigquery): add skipIf decorator to type_overrides test classes
1 parent 307d357 commit 33414ba

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,8 @@ def test_geography_with_complex_wkt(self):
337337
self.assertEqual(usertype.__annotations__, expected_annotations)
338338

339339

340-
class TypeOverridesSchemaToolsTest(unittest.TestCase):
340+
@unittest.skipIf(HttpError is None, 'GCP dependencies are not installed')
341+
class TestTypeOverridesSchemaTools(unittest.TestCase):
341342
"""Tests for type_overrides parameter in bigquery_schema_tools."""
342343
def test_bq_field_to_type_with_overrides(self):
343344
"""Test bq_field_to_type function with type_overrides."""

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,6 +1248,7 @@ def test_geography_with_special_characters(self):
12481248
self.assertIsInstance(result, str)
12491249

12501250

1251+
@unittest.skipIf(HttpError is None, 'GCP dependencies are not installed')
12511252
class TestTypeOverrides(unittest.TestCase):
12521253
"""Tests for type_overrides parameter in BigQuery type mappings."""
12531254
def test_type_overrides_enables_unsupported_types(self):

0 commit comments

Comments
 (0)