From 650f27cd942d404f9a07b901aa6d1b989892e225 Mon Sep 17 00:00:00 2001 From: erikzaadi Date: Mon, 18 Sep 2023 16:22:16 +0300 Subject: [PATCH] [SQUASH] Debug seed issues --- .../tests/test_exposure_schema_validity.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/integration_tests/tests/test_exposure_schema_validity.py b/integration_tests/tests/test_exposure_schema_validity.py index 8ac836a9d..3fb4db4fe 100644 --- a/integration_tests/tests/test_exposure_schema_validity.py +++ b/integration_tests/tests/test_exposure_schema_validity.py @@ -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 @@ -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 = {