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

Commit 9dc5808

Browse files
authored
fix: avoid deprecated "out-of-band" authentication flow (#116)
* fix: avoid deprecated "out-of-band" authentication flow The console-based copy-paste-a-token flow has been deprecated. See: https://developers.googleblog.com/2022/02/making-oauth-flows-safer.html?m=1#disallowed-oob * revert system test change * make system tests pass against github * blacken
1 parent d0e43ef commit 9dc5808

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

ibis_bigquery/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def connect(
5454
dataset_id: str = "",
5555
credentials: Optional[google.auth.credentials.Credentials] = None,
5656
application_name: Optional[str] = None,
57-
auth_local_webserver: bool = False,
57+
auth_local_webserver: bool = True,
5858
auth_external_data: bool = False,
5959
auth_cache: str = "default",
6060
partition_column: Optional[str] = "PARTITIONTIME",

tests/system/test_client.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -598,10 +598,12 @@ def test_multiple_project_queries_execute(client):
598598

599599

600600
def test_large_timestamp(client):
601-
huge_timestamp = datetime.datetime(year=4567, month=1, day=1)
601+
huge_timestamp = datetime.datetime(
602+
year=4567, month=1, day=1, tzinfo=datetime.timezone.utc
603+
)
602604
expr = ibis.timestamp("4567-01-01 00:00:00")
603605
result = client.execute(expr)
604-
assert result == huge_timestamp
606+
assert result.astimezone(datetime.timezone.utc) == huge_timestamp
605607

606608

607609
def test_string_to_timestamp(client):

0 commit comments

Comments
 (0)