Skip to content

Commit 85ab989

Browse files
committed
skipping anomaly tests in clickhouse
1 parent 4080642 commit 85ab989

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

integration_tests/deprecated_tests/run_e2e_tests.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,26 @@ def test_artifacts_update(dbt_runner: BaseDbtRunner) -> TestResult:
9999
)
100100

101101

102+
def filter_anomaly_tests_for_clickhouse(
103+
test_types: List[str], target: str
104+
) -> List[str]:
105+
if target == "clickhouse":
106+
# Anomaly tests are not supported on ClickHouse
107+
anomaly_test_types = {
108+
"seasonal_volume",
109+
"table",
110+
"column",
111+
"directional_anomalies",
112+
"backfill_days",
113+
"dimension",
114+
"no_timestamp",
115+
}
116+
return [
117+
test_type for test_type in test_types if test_type not in anomaly_test_types
118+
]
119+
return test_types
120+
121+
102122
def e2e_tests(
103123
target: str,
104124
test_types: List[str],
@@ -107,6 +127,9 @@ def e2e_tests(
107127
) -> TestResults:
108128
test_results = TestResults()
109129

130+
# Filter out anomaly tests for ClickHouse
131+
test_types = filter_anomaly_tests_for_clickhouse(test_types, target)
132+
110133
dbt_runner = create_dbt_runner(
111134
project_dir=FILE_DIR,
112135
target=target,

0 commit comments

Comments
 (0)