Skip to content

Commit

Permalink
add version check and skipif on several tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chalmerlowe committed Aug 11, 2023
1 parent b009a68 commit 6bb87d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/system/test_read_gbq.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import collections
import datetime
import decimal
import packaging.version
import random

import db_dtypes
Expand Down Expand Up @@ -38,6 +39,7 @@ def writable_table(
bigquery_client.delete_table(full_table_id)


@pytest.mark.skipif(packaging.version.parse(pandas.__version__).release >= (2, 0), reason="")
@pytest.mark.parametrize(["use_bqstorage_api"], [(True,), (False,)])
@pytest.mark.parametrize(
["query", "expected", "use_bqstorage_apis"],
Expand Down Expand Up @@ -545,6 +547,7 @@ def writable_table(
def test_default_dtypes(
read_gbq, query, expected, use_bqstorage_apis, use_bqstorage_api
):

if use_bqstorage_api not in use_bqstorage_apis:
pytest.skip(f"use_bqstorage_api={use_bqstorage_api} not supported.")
# the parameter useQueryCache=False is used in the following function call
Expand All @@ -555,6 +558,7 @@ def test_default_dtypes(
configuration={"query": {"useQueryCache": False}},
)
pandas.testing.assert_frame_equal(result, expected)
assert False


@pytest.mark.parametrize(["use_bqstorage_api"], [(True,), (False,)])
Expand Down

0 comments on commit 6bb87d2

Please sign in to comment.