From 90ede22729c4fab4e09f1e7a0bf00c6ed854452e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 6 May 2024 13:57:03 -0700 Subject: [PATCH] skip tests on `main` to unblock CI, create issues to fix them (#1034) (#1037) (cherry picked from commit 804567cea3f64af2a3b19bb51db76b637ed38ae5) Co-authored-by: Mike Alfare <13974384+mikealfare@users.noreply.github.com> --- tests/functional/adapter/test_constraints.py | 11 +++++++++++ tests/functional/adapter/test_python_model.py | 7 +++++++ 2 files changed, 18 insertions(+) diff --git a/tests/functional/adapter/test_constraints.py b/tests/functional/adapter/test_constraints.py index 41b50ef81..654bbdb5f 100644 --- a/tests/functional/adapter/test_constraints.py +++ b/tests/functional/adapter/test_constraints.py @@ -358,6 +358,17 @@ def models(self): "constraints_schema.yml": constraints_yml, } + @pytest.mark.skip( + "Databricks now raises an exception, which gets raised prior to the `expected_pass` check." + "See https://github.com/dbt-labs/dbt-spark/issues/1009" + ) + def test__constraints_enforcement_rollback( + self, project, expected_color, expected_error_messages, null_model_sql + ): + super().test__constraints_enforcement_rollback( + project, expected_color, expected_error_messages, null_model_sql + ) + # TODO: Like the tests above, this does test that model-level constraints don't # result in errors, but it does not verify that they are actually present in diff --git a/tests/functional/adapter/test_python_model.py b/tests/functional/adapter/test_python_model.py index 1195cbd3e..05e25c5f4 100644 --- a/tests/functional/adapter/test_python_model.py +++ b/tests/functional/adapter/test_python_model.py @@ -24,6 +24,13 @@ class TestPythonIncrementalModelSpark(BasePythonIncrementalTests): def project_config_update(self): return {} + @pytest.mark.skip( + "Databricks can't find the transaction log" + "See https://github.com/dbt-labs/dbt-spark/issues/1033" + ) + def test_incremental(self, project): + super().test_incremental(project) + models__simple_python_model = """ import pandas