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

Commit

Permalink
fix: avoid deprecated "out-of-band" authentication flow (#116)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
tswast authored Mar 14, 2022
1 parent d0e43ef commit 9dc5808
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ibis_bigquery/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def connect(
dataset_id: str = "",
credentials: Optional[google.auth.credentials.Credentials] = None,
application_name: Optional[str] = None,
auth_local_webserver: bool = False,
auth_local_webserver: bool = True,
auth_external_data: bool = False,
auth_cache: str = "default",
partition_column: Optional[str] = "PARTITIONTIME",
Expand Down
6 changes: 4 additions & 2 deletions tests/system/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,10 +598,12 @@ def test_multiple_project_queries_execute(client):


def test_large_timestamp(client):
huge_timestamp = datetime.datetime(year=4567, month=1, day=1)
huge_timestamp = datetime.datetime(
year=4567, month=1, day=1, tzinfo=datetime.timezone.utc
)
expr = ibis.timestamp("4567-01-01 00:00:00")
result = client.execute(expr)
assert result == huge_timestamp
assert result.astimezone(datetime.timezone.utc) == huge_timestamp


def test_string_to_timestamp(client):
Expand Down

0 comments on commit 9dc5808

Please sign in to comment.