Skip to content

Commit

Permalink
fix: skip to_arrow tests when pyarrow is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
tswast committed Jan 7, 2020
1 parent 74e51bd commit 374608b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bigquery/tests/unit/test_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -1809,7 +1809,10 @@ def test_to_arrow_w_empty_table(self):
self.assertEqual(child_field.type.value_type[0].name, "name")
self.assertEqual(child_field.type.value_type[1].name, "age")

@unittest.skipIf(pandas is None, "Requires `pandas`")
@unittest.skipIf(pyarrow is None, "Requires `pyarrow`")
@unittest.skipIf(
bigquery_storage_v1beta1 is None, "Requires `google-cloud-bigquery-storage`"
)
def test_to_arrow_max_results_w_create_bqstorage_warning(self):
from google.cloud.bigquery.schema import SchemaField

Expand Down

0 comments on commit 374608b

Please sign in to comment.