From d63cfdf87a3b735127b4da4bd002035080352005 Mon Sep 17 00:00:00 2001 From: Michelle Ark Date: Wed, 25 Sep 2024 15:58:42 +0100 Subject: [PATCH] restore testing setup --- CONTRIBUTING.md | 2 +- dagger/run_dbt_spark_tests.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7185cef3e..eb3c9146c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -70,7 +70,7 @@ To run functional tests we rely on [dagger](https://dagger.io/). This launches a ```sh pip install -r dagger/requirements.txt -python dagger/run_dbt_spark_tests.py --profile apache_spark --test-path tests/functional/adapter/incremental_strategies/test_microbatch.py +ython dagger/run_dbt_spark_tests.py --profile databricks_sql_endpoint --test-path tests/functional/adapter/test_basic.py::TestSimpleMaterializationsSpark::test_base `--profile`: required, this is the kind of spark connection to test against diff --git a/dagger/run_dbt_spark_tests.py b/dagger/run_dbt_spark_tests.py index 16192541d..0c8323a8a 100644 --- a/dagger/run_dbt_spark_tests.py +++ b/dagger/run_dbt_spark_tests.py @@ -150,8 +150,7 @@ async def test_spark(test_args): tst_container = tst_container.with_(env_variables(TESTING_ENV_VARS)) test_path = test_args.test_path if test_args.test_path else "tests/functional/adapter" - # TODO: remove before merging! - test_path = "tests/functional/adapter/incremental_strategies/test_microbatch.py" + result = await tst_container.with_exec( ["pytest", "-v", "--profile", test_profile, "-n", "auto", test_path] ).stdout()