@@ -53,7 +53,9 @@ def test_sampling_pii_disabled(test_id: str, dbt_project: DbtProject):
5353
5454
5555@pytest .mark .skip_targets (["clickhouse" ])
56- def test_sampling_pii_disabled_with_default_config (test_id : str , dbt_project : DbtProject ):
56+ def test_sampling_pii_disabled_with_default_config (
57+ test_id : str , dbt_project : DbtProject
58+ ):
5759 """Test that PII-tagged tables don't upload samples even when tests fail"""
5860 null_count = 50
5961 data = [{COLUMN_NAME : None } for _ in range (null_count )]
@@ -81,7 +83,9 @@ def test_sampling_pii_disabled_with_default_config(test_id: str, dbt_project: Db
8183
8284
8385@pytest .mark .skip_targets (["clickhouse" ])
84- def test_sampling_pii_enabled_with_default_config (test_id : str , dbt_project : DbtProject ):
86+ def test_sampling_pii_enabled_with_default_config (
87+ test_id : str , dbt_project : DbtProject
88+ ):
8589 """Test that PII-tagged tables don't upload samples even when tests fail"""
8690 null_count = 50
8791 data = [{COLUMN_NAME : None } for _ in range (null_count )]
@@ -165,7 +169,6 @@ def test_sampling_pii_feature_disabled(test_id: str, dbt_project: DbtProject):
165169 assert len (samples ) == TEST_SAMPLE_ROW_COUNT
166170
167171
168-
169172@pytest .mark .skip_targets (["clickhouse" ])
170173def test_sampling_disable_samples_overrides_pii (test_id : str , dbt_project : DbtProject ):
171174 """Test that disable_test_samples flag overrides PII detection when both are present"""
@@ -178,7 +181,9 @@ def test_sampling_disable_samples_overrides_pii(test_id: str, dbt_project: DbtPr
178181 dict (column_name = COLUMN_NAME ),
179182 data = data ,
180183 as_model = True ,
181- model_config = {"config" : {"meta" : {"disable_test_samples" : True }, "tags" : ["pii" ]}},
184+ model_config = {
185+ "config" : {"meta" : {"disable_test_samples" : True }, "tags" : ["pii" ]}
186+ },
182187 test_vars = {
183188 "enable_elementary_test_materialization" : True ,
184189 "test_sample_row_count" : TEST_SAMPLE_ROW_COUNT ,
0 commit comments