Skip to content

Commit

Permalink
test(bigquery): check the correct exception for missing tables (ibis-…
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud authored and ncclementi committed Sep 24, 2024
1 parent 1dc97a4 commit b54f528
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ibis/backends/bigquery/tests/system/test_connect.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from google.cloud import bigquery_storage_v1 as bqstorage

import ibis
import ibis.common.exceptions as exc


def test_repeated_project_name(project_id, credentials):
Expand Down Expand Up @@ -230,7 +231,7 @@ def test_client_with_regional_endpoints(project_id, credentials, dataset_id):
)

# Fails because dataset not in Tokyo.
with pytest.raises(gexc.NotFound, match=dataset_id):
with pytest.raises(exc.TableNotFound, match=dataset_id):
tokyo_con.table(f"{dataset_id}.functional_alltypes")

# Succeeds because dataset is in Tokyo.
Expand Down

0 comments on commit b54f528

Please sign in to comment.