From 3d56ac39b3b0cf1ab680d9bc8c85503fe028ed35 Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Wed, 22 Mar 2023 14:04:24 -0500 Subject: [PATCH] fix expected color fixture --- tests/functional/adapter/test_constraints.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tests/functional/adapter/test_constraints.py b/tests/functional/adapter/test_constraints.py index 5bae7acad..06e35b524 100644 --- a/tests/functional/adapter/test_constraints.py +++ b/tests/functional/adapter/test_constraints.py @@ -284,9 +284,4 @@ def models(self): "constraints_schema.yml": constraints_yml, } - # On Spark/Databricks, constraints are applied *after* the table is replaced. - # We don't have any way to "rollback" the table to its previous happy state. - # So the 'color' column will be updated to 'red', instead of 'blue'. - @pytest.fixture(scope="class") - def expected_color(self): - return "red" + # The insert never gets applied so for this materialization the color stays blue