Skip to content

Commit

Permalink
additional conditions for assert
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyaFaer committed May 7, 2024
1 parent 97a9033 commit 64eaf88
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/load/pipeline/test_pipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -996,12 +996,14 @@ def table_3(make_data=False):
is True
)

client, _ = pipeline._get_destination_clients(schema)
job_client, _ = pipeline._get_destination_clients(schema)

if isinstance(client, WithStagingDataset):
if isinstance(job_client, WithStagingDataset):
with pipeline.sql_client() as client:
for i in range(1, 4):
if client.should_load_data_to_staging_dataset(f"table_{i}"):
if job_client.should_load_data_to_staging_dataset(
pipeline.default_schema.tables[f"table_{i}"]
):
with client.execute_query(
f"SELECT * FROM {pipeline.dataset_name}_staging.table_{i}"
) as cur:
Expand Down

0 comments on commit 64eaf88

Please sign in to comment.