Skip to content

Commit

Permalink
[SQUASH] Debug seed issues
Browse files Browse the repository at this point in the history
  • Loading branch information
erikzaadi committed Sep 18, 2023
1 parent 9d03a2f commit 650f27c
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions integration_tests/tests/test_exposure_schema_validity.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,15 @@ def validate_failing_query_output(
def test_exposure_schema_validity_with_existing_exposure_yml_invalid(
test_id: str, dbt_project: DbtProject
):
seed_result = dbt_project.dbt_runner.seed(full_refresh=True)
seed_result, seed_output = dbt_project.dbt_runner._run_command(
command_args=["seed", "--full-refresh"],
log_format="text",
capture_output=True,
quiet=True,
log_output=False,
)
if seed_result is False:
assert "" == seed_output
assert seed_result is True
run_result = dbt_project.dbt_runner.run(
models="orders", full_refresh=True, quiet=True
Expand Down Expand Up @@ -80,7 +88,7 @@ def test_exposure_schema_validity_with_correct_columns_and_types(
):
explicit_target_for_bigquery = (
"other"
if dbt_project.dbt_runner.target in ["bigquery", "snowflake"]
if dbt_project.dbt_runner.target in ["bigquery", "snowflake", ""]
else "string"
)
DBT_TEST_ARGS = {
Expand Down

0 comments on commit 650f27c

Please sign in to comment.