Skip to content

fix: edit units for time in tests #655

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 20 commits into from
Aug 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions tests/system/test_gbq.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# -*- coding: utf-8 -*-

import datetime
import packaging.version
import sys

import numpy as np
Expand Down Expand Up @@ -997,6 +998,9 @@ def test_upload_data_with_missing_schema_fields_raises_error(self, project_id):
table_schema=test_schema,
)

@pytest.mark.skipif(
packaging.version.parse(pandas.__version__).release >= (2, 0), reason=""
)
def test_upload_data_with_timestamp(self, project_id):
test_id = "21"
test_size = 6
Expand Down
5 changes: 5 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,9 @@ 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 +549,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 Down