Skip to content
This repository was archived by the owner on Mar 29, 2023. It is now read-only.

Commit 57aa1c1

Browse files
authored
test: fix AttributeError in test_connect.py (#23)
The scope constants belong to the module, not the backend.
1 parent a529bb1 commit 57aa1c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/system/test_connect.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def mock_default(*args, **kwargs):
7575
args, kwargs = mock_calls[0]
7676
assert len(args) == 1
7777
scopes = args[0]
78-
assert scopes == bq_backend.SCOPES
78+
assert scopes == ibis_bigquery.SCOPES
7979
auth_local_webserver = kwargs["use_local_webserver"]
8080
auth_cache = kwargs["credentials_cache"]
8181
assert not auth_local_webserver
@@ -124,7 +124,7 @@ def mock_default(*args, **kwargs):
124124
args, _ = mock_calls[0]
125125
assert len(args) == 1
126126
scopes = args[0]
127-
assert scopes == bq_backend.EXTERNAL_DATA_SCOPES
127+
assert scopes == ibis_bigquery.EXTERNAL_DATA_SCOPES
128128

129129

130130
def test_auth_cache_reauth(project_id, credentials, monkeypatch):

0 commit comments

Comments
 (0)