From 4967c480c748d420b552e3e74f8c3130401d17fb Mon Sep 17 00:00:00 2001 From: Petro Tiurin <93913847+ptiurin@users.noreply.github.com> Date: Wed, 28 Aug 2024 13:08:03 +0100 Subject: [PATCH] test: Skip incompatible tests (#136) --- .changes/unreleased/Fixed-20240828-120547.yaml | 3 +++ tests/functional/adapter/test_store_test_failures.py | 9 +++++++++ 2 files changed, 12 insertions(+) create mode 100644 .changes/unreleased/Fixed-20240828-120547.yaml diff --git a/.changes/unreleased/Fixed-20240828-120547.yaml b/.changes/unreleased/Fixed-20240828-120547.yaml new file mode 100644 index 00000000..6ada8f16 --- /dev/null +++ b/.changes/unreleased/Fixed-20240828-120547.yaml @@ -0,0 +1,3 @@ +kind: Fixed +body: Incompatible tests +time: 2024-08-28T12:05:47.794056+01:00 diff --git a/tests/functional/adapter/test_store_test_failures.py b/tests/functional/adapter/test_store_test_failures.py index f716f2f5..53cb5730 100644 --- a/tests/functional/adapter/test_store_test_failures.py +++ b/tests/functional/adapter/test_store_test_failures.py @@ -1,3 +1,5 @@ +import os + from dbt.tests.adapter.store_test_failures_tests.basic import ( StoreTestFailuresAsExceptions, StoreTestFailuresAsGeneric, @@ -6,29 +8,36 @@ StoreTestFailuresAsProjectLevelOff, StoreTestFailuresAsProjectLevelView, ) +from pytest import mark +@mark.skipif(bool(os.getenv('PASSWORD')), reason='Not supported in FB 1.0') class TestStoreTestFailuresAsInteractions(StoreTestFailuresAsInteractions): pass +@mark.skipif(bool(os.getenv('PASSWORD')), reason='Not supported in FB 1.0') class TestStoreTestFailuresAsProjectLevelOff(StoreTestFailuresAsProjectLevelOff): pass +@mark.skipif(bool(os.getenv('PASSWORD')), reason='Not supported in FB 1.0') class TestStoreTestFailuresAsProjectLevelView(StoreTestFailuresAsProjectLevelView): pass +@mark.skipif(bool(os.getenv('PASSWORD')), reason='Not supported in FB 1.0') class TestStoreTestFailuresAsGeneric(StoreTestFailuresAsGeneric): pass +@mark.skipif(bool(os.getenv('PASSWORD')), reason='Not supported in FB 1.0') class TestStoreTestFailuresAsProjectLevelEphemeral( StoreTestFailuresAsProjectLevelEphemeral ): pass +@mark.skipif(bool(os.getenv('PASSWORD')), reason='Not supported in FB 1.0') class TestStoreTestFailuresAsExceptions(StoreTestFailuresAsExceptions): pass