Skip to content

Commit a41cbe3

Browse files
committed
Remove id from pii test
1 parent 3e0bfe9 commit a41cbe3

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

tests/unit/data_processing/test_data_processor.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1326,8 +1326,6 @@ def test__create_config_with_different_pii_situations(self):
13261326
'example_pii_false': [7, 8, 9],
13271327
'unknown_pii_true': ['a', 'b', 'c'],
13281328
'unknown_pii_false': ['a', 'b', 'c'],
1329-
'id_pii_true': ['ID_001', 'ID_002', 'ID_003'],
1330-
'id_pii_false': ['ID_001', 'ID_002', 'ID_003'],
13311329
})
13321330
metadata = SingleTableMetadata().load_from_dict({
13331331
'columns': {
@@ -1339,8 +1337,6 @@ def test__create_config_with_different_pii_situations(self):
13391337
'example_pii_false': {'sdtype': 'example', 'pii': False},
13401338
'unknown_pii_true': {'sdtype': 'unknown', 'pii': True},
13411339
'unknown_pii_false': {'sdtype': 'unknown', 'pii': False},
1342-
'id_pii_true': {'sdtype': 'id', 'pii': True},
1343-
'id_pii_false': {'sdtype': 'id', 'pii': False},
13441340
},
13451341
})
13461342
dp = DataProcessor(metadata)
@@ -1355,10 +1351,8 @@ def test__create_config_with_different_pii_situations(self):
13551351
'unknown_pii_true': 'pii',
13561352
'phone_pii': 'pii',
13571353
'name_pii': 'pii',
1358-
'id_pii_true': 'pii',
13591354
'example_pii_false': 'example',
13601355
'unknown_pii_false': 'pii',
1361-
'id_pii_false': 'id',
13621356
'example_pii_true': 'example',
13631357
'city_categorical': 'categorical',
13641358
}
@@ -1367,10 +1361,8 @@ def test__create_config_with_different_pii_situations(self):
13671361
'unknown_pii_true': AnonymizedFaker,
13681362
'phone_pii': AnonymizedFaker,
13691363
'name_pii': AnonymizedFaker,
1370-
'id_pii_true': AnonymizedFaker,
13711364
'example_pii_false': FloatFormatter,
13721365
'unknown_pii_false': AnonymizedFaker,
1373-
'id_pii_false': UniformEncoder,
13741366
'example_pii_true': FloatFormatter,
13751367
'city_categorical': UniformEncoder,
13761368
}
@@ -1379,8 +1371,6 @@ def test__create_config_with_different_pii_situations(self):
13791371
'unknown_pii_true': 'bothify',
13801372
'phone_pii': 'phone_number',
13811373
'name_pii': 'name',
1382-
'id_pii_true': 'bothify',
1383-
'id_pii_false': 'bothify',
13841374
}
13851375

13861376
for column, transformer in config['transformers'].items():

0 commit comments

Comments
 (0)