Skip to content

Commit 0358f4f

Browse files
committed
test(bigquery-magics): support both old and new table_id parse error formats
1 parent a0da993 commit 0358f4f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/bigquery-magics/tests/unit/bigquery/test_bigquery.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2974,7 +2974,10 @@ def test_bigquery_magic_query_variable_not_identifier():
29742974
# considered a table name, thus we expect an error that the table ID is not valid.
29752975
output = captured_io.stderr
29762976
assert "ERROR:" in output
2977-
assert "must be a fully-qualified ID" in output
2977+
assert (
2978+
"must be a fully-qualified ID" in output
2979+
or "Could not parse table_id." in output
2980+
)
29782981

29792982

29802983
@pytest.mark.usefixtures("mock_credentials")

0 commit comments

Comments
 (0)