Skip to content

Commit

Permalink
[Fix] small change to test pathing for assert clause (#739)
Browse files Browse the repository at this point in the history
* changing assert path to reach success sate of RunResult

* adding more to assert clause
  • Loading branch information
McKnight-42 authored May 25, 2023
1 parent 7bc2af0 commit 3f3cfdc
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import pytest
from dbt.tests.util import get_relation_columns, run_dbt, run_sql_with_adapter
from dbt.contracts.results import NodeStatus
import datetime
import yaml

Expand Down Expand Up @@ -75,7 +76,7 @@ def test_bigquery_upload_file_csv(self, project):
}
)
upload_result = run_dbt(["run-operation", "upload_file", "--args", upload_args])
assert upload_result.success
assert upload_result.results[0].status == NodeStatus.Success

# Check if the uploaded table contains expected values and schema
self.perform_uploaded_table_checks(project.test_schema, "TestUploadFileCSV", project)
Expand All @@ -94,7 +95,7 @@ def test_bigquery_upload_file_ndjson(self, project):
}
)
upload_result = run_dbt(["run-operation", "upload_file", "--args", upload_args])
assert upload_result.success
assert upload_result.results[0].status == NodeStatus.Success

# Check if the uploaded table contains expected values and schema
self.perform_uploaded_table_checks(project.test_schema, "TestUploadFileNDJSON", project)
Expand All @@ -112,7 +113,7 @@ def test_bigquery_upload_file_parquet(self, project):
}
)
upload_result = run_dbt(["run-operation", "upload_file", "--args", upload_args])
assert upload_result.success
assert upload_result.results[0].status == NodeStatus.Success

# Check if the uploaded table contains expected values and schema
self.perform_uploaded_table_checks(project.test_schema, "TestUploadFileParquet", project)

0 comments on commit 3f3cfdc

Please sign in to comment.