We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 13d004a commit 4029d97Copy full SHA for 4029d97
pandas/tests/io/test_gbq.py
@@ -4,6 +4,11 @@
4
import platform
5
import os
6
7
+try:
8
+ from unittest import mock
9
+except ImportError:
10
+ mock = pytest.importorskip("mock")
11
+
12
import numpy as np
13
import pandas as pd
14
from pandas import compat, DataFrame
@@ -93,6 +98,14 @@ def make_mixed_dataframe_v2(test_size):
93
98
index=range(test_size))
94
99
95
100
101
+def test_read_gbq_without_dialect_warns_future_change(monkeypatch):
102
+ mock_read_gbq = mock.Mock()
103
+ mock_read_gbq.return_value = DataFrame([[1.0]])
104
+ monkeypatch.setattr(pandas_gbq, 'read_gbq', mock_read_gbq)
105
+ with pytest.warns(FutureWarning):
106
+ pd.read_gbq("SELECT 1")
107
108
96
109
@pytest.mark.single
97
110
class TestToGBQIntegrationWithServiceAccountKeyPath(object):
111
0 commit comments