|
14 | 14 | } |
15 | 15 |
|
16 | 16 |
|
| 17 | +# Anomalies currently not supported on ClickHouse |
| 18 | +@pytest.mark.skip_targets(["clickhouse"]) |
17 | 19 | def test_anomalyless_column_anomalies(test_id: str, dbt_project: DbtProject): |
18 | 20 | utc_today = datetime.utcnow().date() |
19 | 21 | data: List[Dict[str, Any]] = [ |
@@ -137,6 +139,8 @@ def test_column_anomalies_with_where_parameter(test_id: str, dbt_project: DbtPro |
137 | 139 | assert test_result["status"] == "fail" |
138 | 140 |
|
139 | 141 |
|
| 142 | +# Anomalies currently not supported on ClickHouse |
| 143 | +@pytest.mark.skip_targets(["clickhouse"]) |
140 | 144 | def test_column_anomalies_with_timestamp_as_sql_expression( |
141 | 145 | test_id: str, dbt_project: DbtProject |
142 | 146 | ): |
@@ -225,22 +229,20 @@ def test_volume_anomaly_static_data_drop( |
225 | 229 | assert test_result["status"] == expected_result |
226 | 230 |
|
227 | 231 |
|
| 232 | +# Anomalies currently not supported on ClickHouse |
| 233 | +@pytest.mark.skip_targets(["clickhouse"]) |
228 | 234 | def test_anomalyless_column_anomalies_group(test_id: str, dbt_project: DbtProject): |
229 | 235 | utc_today = datetime.utcnow().date() |
230 | 236 | data: List[Dict[str, Any]] = [ |
231 | 237 | { |
232 | 238 | TIMESTAMP_COLUMN: cur_date.strftime(DATE_FORMAT), |
233 | 239 | "superhero": superhero, |
234 | | - "dimension1": "dim1", |
235 | | - "dimension2": "dim2", |
236 | 240 | } |
237 | 241 | for cur_date in generate_dates(base_date=utc_today - timedelta(1)) |
238 | 242 | for superhero in ["Superman", "Batman"] |
239 | 243 | ] |
240 | | - test_args = DBT_TEST_ARGS.copy() |
241 | | - test_args["dimensions"] = ["dimension1", "dimension2"] |
242 | 244 | test_result = dbt_project.test( |
243 | | - test_id, DBT_TEST_NAME, test_args, data=data, test_column="superhero" |
| 245 | + test_id, DBT_TEST_NAME, DBT_TEST_ARGS, data=data, test_column="superhero" |
244 | 246 | ) |
245 | 247 | assert test_result["status"] == "pass" |
246 | 248 |
|
|
0 commit comments