|
2 | 2 | from datetime import datetime, time, timedelta |
3 | 3 |
|
4 | 4 | import dateutil.parser |
| 5 | +import pytest |
5 | 6 | from data_generator import DATE_FORMAT, generate_dates |
6 | 7 | from dbt_project import DbtProject |
7 | 8 |
|
@@ -106,6 +107,8 @@ def test_full_backfill_for_non_incremental_model(dbt_project: DbtProject, test_i |
106 | 107 | } |
107 | 108 |
|
108 | 109 |
|
| 110 | +# Anomalies currently not supported on ClickHouse |
| 111 | +@pytest.mark.skip_targets(["clickhouse"]) |
109 | 112 | def test_partial_backfill_for_incremental_models(dbt_project: DbtProject, test_id: str): |
110 | 113 | utc_today = datetime.utcnow().date() |
111 | 114 | data_dates = generate_dates(base_date=utc_today - timedelta(1)) |
@@ -152,6 +155,8 @@ def test_partial_backfill_for_incremental_models(dbt_project: DbtProject, test_i |
152 | 155 | } |
153 | 156 |
|
154 | 157 |
|
| 158 | +# Anomalies currently not supported on ClickHouse |
| 159 | +@pytest.mark.skip_targets(["clickhouse"]) |
155 | 160 | def test_longer_backfill_in_case_of_a_gap(dbt_project: DbtProject, test_id: str): |
156 | 161 | date_gap_size = 5 |
157 | 162 | utc_today = datetime.utcnow().date() |
@@ -204,6 +209,8 @@ def test_longer_backfill_in_case_of_a_gap(dbt_project: DbtProject, test_id: str) |
204 | 209 | } |
205 | 210 |
|
206 | 211 |
|
| 212 | +# Anomalies currently not supported on ClickHouse |
| 213 | +@pytest.mark.skip_targets(["clickhouse"]) |
207 | 214 | def test_full_backfill_if_metric_not_updated_for_a_long_time( |
208 | 215 | dbt_project: DbtProject, test_id: str |
209 | 216 | ): |
@@ -263,6 +270,8 @@ def test_full_backfill_if_metric_not_updated_for_a_long_time( |
263 | 270 | } |
264 | 271 |
|
265 | 272 |
|
| 273 | +# Anomalies currently not supported on ClickHouse |
| 274 | +@pytest.mark.skip_targets(["clickhouse"]) |
266 | 275 | def test_backfill_when_metric_doesnt_exist_back_enough( |
267 | 276 | dbt_project: DbtProject, test_id: str |
268 | 277 | ): |
@@ -307,6 +316,8 @@ def test_backfill_when_metric_doesnt_exist_back_enough( |
307 | 316 | } |
308 | 317 |
|
309 | 318 |
|
| 319 | +# Anomalies currently not supported on ClickHouse |
| 320 | +@pytest.mark.skip_targets(["clickhouse"]) |
310 | 321 | def test_backfill_with_middle_buckets_gap(dbt_project: DbtProject, test_id: str): |
311 | 322 | utc_today = datetime.utcnow().date() |
312 | 323 | data_start = utc_today - timedelta(21) |
@@ -375,6 +386,8 @@ def test_backfill_with_middle_buckets_gap(dbt_project: DbtProject, test_id: str) |
375 | 386 | } |
376 | 387 |
|
377 | 388 |
|
| 389 | +# Anomalies currently not supported on ClickHouse |
| 390 | +@pytest.mark.skip_targets(["clickhouse"]) |
378 | 391 | def test_bucket_size_not_aligned_with_days(dbt_project: DbtProject, test_id: str): |
379 | 392 | """ |
380 | 393 | In this test we choose a bucket size that is not aligned with one day - specifically 7 hours. |
|
0 commit comments