Skip to content
This repository was archived by the owner on Nov 12, 2025. It is now read-only.

Commit 3218893

Browse files
authored
test: add system test SQL to run tests locally (#74)
* test: add system test SQL to run tests locally I was missing the `public_samples_copy` dataset when trying to run the system tests locally. Also, it is unnecessary to use the `mock` backfill package now that Python 3.6+ is required. * revert change to use mock built-in needs AsyncMock backfill
1 parent cef5d4a commit 3218893

3 files changed

Lines changed: 20 additions & 2 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
-- Copyright 2020 Google LLC
2+
--
3+
-- Licensed under the Apache License, Version 2.0 (the "License");
4+
-- you may not use this file except in compliance with the License.
5+
-- You may obtain a copy of the License at
6+
--
7+
-- https://www.apache.org/licenses/LICENSE-2.0
8+
--
9+
-- Unless required by applicable law or agreed to in writing, software
10+
-- distributed under the License is distributed on an "AS IS" BASIS,
11+
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
-- See the License for the specific language governing permissions and
13+
-- limitations under the License.
14+
15+
CREATE TABLE public_samples_copy.shakespeare
16+
AS
17+
SELECT * FROM `bigquery-public-data.samples.shakespeare`

tests/unit/test_client_v1.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
from unittest import mock
16+
1517
from google.api_core.gapic_v1 import client_info
16-
import mock
1718
import pytest
1819

1920
from google.cloud.bigquery_storage import types

tests/unit/test_reader_v1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
import decimal
1919
import itertools
2020
import json
21+
from unittest import mock
2122

2223
import fastavro
2324
import pyarrow
24-
import mock
2525
import pandas
2626
import pandas.testing
2727
import pytest

0 commit comments

Comments
 (0)