@@ -27,12 +27,17 @@ def mock_credentials(*args, **kwargs):
2727 return creds , "default-project-id"
2828
2929 monkeypatch .setattr (pydata_google_auth , "default" , mock_credentials )
30- con = ibis_bigquery .connect (project_id = "explicit-project-id" ,)
30+ con = ibis_bigquery .connect (
31+ project_id = "explicit-project-id" ,
32+ )
3133 assert con .billing_project == "explicit-project-id"
3234
3335
3436def test_without_dataset (project_id , credentials ):
35- con = ibis_bigquery .connect (project_id = project_id , credentials = credentials ,)
37+ con = ibis_bigquery .connect (
38+ project_id = project_id ,
39+ credentials = credentials ,
40+ )
3641 with pytest .raises (ValueError , match = "Unable to determine BigQuery" ):
3742 con .list_tables ()
3843
@@ -62,7 +67,8 @@ def mock_default(*args, **kwargs):
6267 monkeypatch .setattr (pydata_google_auth , "default" , mock_default )
6368
6469 ibis_bigquery .connect (
65- project_id = project_id , dataset_id = "bigquery-public-data.stackoverflow" ,
70+ project_id = project_id ,
71+ dataset_id = "bigquery-public-data.stackoverflow" ,
6672 )
6773
6874 assert len (mock_calls ) == 1
@@ -73,7 +79,10 @@ def mock_default(*args, **kwargs):
7379 auth_local_webserver = kwargs ["use_local_webserver" ]
7480 auth_cache = kwargs ["credentials_cache" ]
7581 assert not auth_local_webserver
76- assert isinstance (auth_cache , pydata_google_auth .cache .ReadWriteCredentialsCache ,)
82+ assert isinstance (
83+ auth_cache ,
84+ pydata_google_auth .cache .ReadWriteCredentialsCache ,
85+ )
7786
7887
7988def test_auth_local_webserver (project_id , credentials , monkeypatch ):
@@ -137,7 +146,10 @@ def mock_default(*args, **kwargs):
137146 assert len (mock_calls ) == 1
138147 _ , kwargs = mock_calls [0 ]
139148 auth_cache = kwargs ["credentials_cache" ]
140- assert isinstance (auth_cache , pydata_google_auth .cache .WriteOnlyCredentialsCache ,)
149+ assert isinstance (
150+ auth_cache ,
151+ pydata_google_auth .cache .WriteOnlyCredentialsCache ,
152+ )
141153
142154
143155def test_auth_cache_none (project_id , credentials , monkeypatch ):
0 commit comments