Skip to content

Commit 1dd02ed

Browse files
committed
skip more tests on fusion
1 parent 04aa555 commit 1dd02ed

File tree

5 files changed

+17
-0
lines changed

5 files changed

+17
-0
lines changed

integration_tests/tests/test_collect_metrics.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ def test_collect_group_by_metrics(test_id: str, dbt_project: DbtProject):
150150

151151
# Anomalies currently not supported on ClickHouse
152152
@pytest.mark.skip_targets(["clickhouse"])
153+
@pytest.mark.skip_for_dbt_fusion
153154
def test_collect_metrics_unique_metric_name(test_id: str, dbt_project: DbtProject):
154155
args = DBT_TEST_ARGS.copy()
155156
args["metrics"].append(args["metrics"][0])

integration_tests/tests/test_dbt_artifacts/test_artifacts.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def test_artifacts_collection_in_multiple_row_batches(dbt_project: DbtProject):
5252
assert len(existing_artifacts) == len(new_artifacts)
5353

5454

55+
@pytest.mark.skip_for_dbt_fusion
5556
def test_dbt_invocations(dbt_project: DbtProject):
5657
dbt_project.dbt_runner.vars["disable_dbt_invocation_autoupload"] = False
5758
dbt_project.dbt_runner.run(selector="one")
@@ -95,6 +96,7 @@ def test_metrics_anomaly_score(dbt_project: DbtProject):
9596

9697

9798
@pytest.mark.requires_dbt_version("1.8.0")
99+
@pytest.mark.skip_for_dbt_fusion
98100
def test_source_freshness_results(test_id: str, dbt_project: DbtProject):
99101
database_property, schema_property = get_database_and_schema_properties(
100102
dbt_project.target

integration_tests/tests/test_dbt_artifacts/test_groups.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ def assert_group_row_in_db_groups(dbt_project, group_name, owner_name, owner_ema
8888
), f"Expected owner email '{owner_email}', got '{group_row.get('owner_email')}'"
8989

9090

91+
@pytest.mark.skip_for_dbt_fusion
9192
def test_model_and_groups(dbt_project: DbtProject, tmp_path):
9293
"""
9394
Test that a model assigned to a group inherits the group attribute in the dbt_models artifact table.
@@ -161,6 +162,7 @@ def test_model_and_groups(dbt_project: DbtProject, tmp_path):
161162
dbt_model_path.unlink()
162163

163164

165+
@pytest.mark.skip_for_dbt_fusion
164166
def test_two_groups(dbt_project: DbtProject, tmp_path):
165167
"""
166168
Test that two models assigned to two different groups inherit the correct group attribute in the dbt_models artifact table.
@@ -453,6 +455,7 @@ def test_seed_group_attribute(dbt_project: DbtProject, tmp_path):
453455
)
454456

455457

458+
@pytest.mark.skip_for_dbt_fusion
456459
def test_snapshot_group_attribute(dbt_project: DbtProject, tmp_path):
457460
"""
458461
Test that a snapshot assigned to a group inherits the group attribute in the dbt_snapshots artifact table.

integration_tests/tests/test_exposure_schema_validity.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ def seed(dbt_project: DbtProject):
99
assert seed_result is True
1010

1111

12+
@pytest.mark.skip_for_dbt_fusion
1213
def test_exposure_schema_validity_existing_exposure_yml_invalid(
1314
test_id: str, dbt_project: DbtProject
1415
):
@@ -27,6 +28,7 @@ def test_exposure_schema_validity_existing_exposure_yml_invalid(
2728
assert test_result.success is False
2829

2930

31+
@pytest.mark.skip_for_dbt_fusion
3032
def test_exposure_schema_validity_existing_exposure_yml_valid(
3133
test_id: str, dbt_project: DbtProject
3234
):
@@ -45,13 +47,15 @@ def test_exposure_schema_validity_existing_exposure_yml_valid(
4547

4648

4749
@pytest.mark.skip_targets(["spark"])
50+
@pytest.mark.skip_for_dbt_fusion
4851
def test_exposure_schema_validity_no_exposures(test_id: str, dbt_project: DbtProject):
4952
test_result = dbt_project.test(test_id, DBT_TEST_NAME)
5053
assert test_result["status"] == "pass"
5154

5255

5356
# Schema validity currently not supported on ClickHouse
5457
@pytest.mark.skip_targets(["spark", "clickhouse"])
58+
@pytest.mark.skip_for_dbt_fusion
5559
def test_exposure_schema_validity_correct_columns_and_types(
5660
test_id: str, dbt_project: DbtProject
5761
):
@@ -86,6 +90,7 @@ def test_exposure_schema_validity_correct_columns_and_types(
8690

8791

8892
@pytest.mark.skip_targets(["spark"])
93+
@pytest.mark.skip_for_dbt_fusion
8994
def test_exposure_schema_validity_correct_columns_and_invalid_type(
9095
test_id: str, dbt_project: DbtProject
9196
):
@@ -118,6 +123,7 @@ def test_exposure_schema_validity_correct_columns_and_invalid_type(
118123

119124
# Schema validity currently not supported on ClickHouse
120125
@pytest.mark.skip_targets(["spark", "clickhouse"])
126+
@pytest.mark.skip_for_dbt_fusion
121127
def test_exposure_schema_validity_invalid_type_name_present_in_error(
122128
test_id: str, dbt_project: DbtProject
123129
):
@@ -160,6 +166,7 @@ def test_exposure_schema_validity_invalid_type_name_present_in_error(
160166

161167

162168
@pytest.mark.skip_targets(["spark"])
169+
@pytest.mark.skip_for_dbt_fusion
163170
def test_exposure_schema_validity_correct_columns_and_missing_type(
164171
test_id: str, dbt_project: DbtProject
165172
):
@@ -183,6 +190,7 @@ def test_exposure_schema_validity_correct_columns_and_missing_type(
183190

184191

185192
@pytest.mark.skip_targets(["spark"])
193+
@pytest.mark.skip_for_dbt_fusion
186194
def test_exposure_schema_validity_missing_columns(
187195
test_id: str, dbt_project: DbtProject
188196
):

integration_tests/tests/test_long_strings.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import pytest
12
from dbt_project import DbtProject
23

34
SAFE_QUERY_SIZE = 10000
@@ -17,6 +18,7 @@ def read_run_result(dbt_project, test_id):
1718
)[0]
1819

1920

21+
@pytest.mark.skip_for_dbt_fusion
2022
def test_query_size_exceed(test_id: str, dbt_project: DbtProject):
2123
dbt_project.dbt_runner.vars["disable_run_results"] = False
2224
max_query_size = int(
@@ -35,6 +37,7 @@ def test_query_size_exceed(test_id: str, dbt_project: DbtProject):
3537
assert len(result["compiled_code"]) < max_query_size
3638

3739

40+
@pytest.mark.skip_for_dbt_fusion
3841
def test_query_size_safe(test_id: str, dbt_project: DbtProject):
3942
dbt_project.dbt_runner.vars["disable_run_results"] = False
4043
query = generate_query(SAFE_QUERY_SIZE)

0 commit comments

Comments
 (0)