Skip to content

Commit

Permalink
remove unnecessary test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare committed Dec 19, 2023
1 parent 1ae71ba commit cf171da
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions tests/boundary/test_bigquery_sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,14 @@
from google.api_core.exceptions import NotFound


class TestBigQuerySDK:
@pytest.mark.parametrize("table_name", ["this_table_does_not_exist"])
def test_get_table_does_not_exist(project, table_name):
"""
TODO: replace dbt project methods with direct connection instantiation
"""

@pytest.mark.parametrize("table_name", ["this_table_does_not_exist"])
def test_get_table_does_not_exist(self, project, table_name):
with get_connection(project.adapter) as conn:
client: Client = conn.handle
dataset_ref = DatasetReference(project.database, project.test_schema)
table_ref = TableReference(dataset_ref, table_name)
with pytest.raises(NotFound):
client.get_table(table_ref)
with get_connection(project.adapter) as conn:
client: Client = conn.handle
dataset_ref = DatasetReference(project.database, project.test_schema)
table_ref = TableReference(dataset_ref, table_name)
with pytest.raises(NotFound):
client.get_table(table_ref)

0 comments on commit cf171da

Please sign in to comment.