Skip to content

Commit

Permalink
Make BQ storage required in test_query_pandas.py
Browse files Browse the repository at this point in the history
  • Loading branch information
plamut committed Jul 16, 2021
1 parent c2b73e4 commit 996baa3
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions tests/unit/job/test_query_pandas.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,8 @@
except (ImportError, AttributeError): # pragma: NO COVER
pandas = None

try:
from google.cloud import bigquery_storage
except (ImportError, AttributeError): # pragma: NO COVER
bigquery_storage = None
from google.cloud import bigquery_storage

try:
from tqdm import tqdm
except (ImportError, AttributeError): # pragma: NO COVER
Expand Down Expand Up @@ -81,9 +79,6 @@ def test__contains_order_by(query, expected):


@pytest.mark.skipif(pandas is None, reason="Requires `pandas`")
@pytest.mark.skipif(
bigquery_storage is None, reason="Requires `google-cloud-bigquery-storage`"
)
@pytest.mark.parametrize(
"query",
(
Expand Down Expand Up @@ -478,9 +473,6 @@ def test_to_dataframe_ddl_query():


@pytest.mark.skipif(pandas is None, reason="Requires `pandas`")
@pytest.mark.skipif(
bigquery_storage is None, reason="Requires `google-cloud-bigquery-storage`"
)
def test_to_dataframe_bqstorage(table_read_options_kwarg):
from google.cloud.bigquery.job import QueryJob as target_class

Expand Down Expand Up @@ -531,9 +523,6 @@ def test_to_dataframe_bqstorage(table_read_options_kwarg):


@pytest.mark.skipif(pandas is None, reason="Requires `pandas`")
@pytest.mark.skipif(
bigquery_storage is None, reason="Requires `google-cloud-bigquery-storage`"
)
def test_to_dataframe_bqstorage_no_pyarrow_compression():
from google.cloud.bigquery.job import QueryJob as target_class

Expand Down

0 comments on commit 996baa3

Please sign in to comment.