@@ -47,7 +47,7 @@ def test_api_identify_sensitive_data(mocker_text_file, tmp_path):
4747 F2120212E
4848 S0021001P
4949 """
50- test_data = [
'102.23.5.1' ,
'10.10.10.1' ,
'71.159.188.33' ,
'81.141.167.45' ,
'165.65.59.139' ,
'64.248.67.225' ,
'https://tech.gov.sg' ,
'[email protected] ' ,
'mail.com' ,
'102.23.5.1' ,
'10.10.10.1' ,
'71.159.188.33' ,
'81.141.167.45' ,
'165.65.59.139' ,
'64.248.67.225' ,
'QVBJX1RPS0VO' , 'UzNjcjN0UGFzc3dvcmQ=' , 'U3VwM3JTM2NyZXRQQHNzd29yZA==' , ' G0022121F',
'F2121200F' ,
'G1021022E' ,
'S1022221L' ,
'G1222221C' ,
'S0000212Q' ,
'F2120212E' ,
'S0021001P' ]
50+ test_data = [
'102.23.5.1' ,
'10.10.10.1' ,
'71.159.188.33' ,
'81.141.167.45' ,
'165.65.59.139' ,
'64.248.67.225' ,
'https://tech.gov.sg' ,
'[email protected] ' ,
'mail.com' ,
'102.23.5.1' ,
'10.10.10.1' ,
'71.159.188.33' ,
'81.141.167.45' ,
'165.65.59.139' ,
'64.248.67.225' ,
'G0022121F' ,
'F2121200F' ,
'G1021022E' ,
'S1022221L' ,
'G1222221C' ,
'S0000212Q' ,
'F2120212E' ,
'S0021001P' ]
5151
52- assert Runner .api_identify_sensitive_data (test_string ) == test_data , "api_identify_sensitive_data function should return an empty set "
52+ assert Runner .api_identify_sensitive_data (test_string ) == test_data , "api_identify_sensitive_data function should return a list of sensitive data "
5353 assert Runner .api_identify_sensitive_data ('This is a test string' ) == [], "api_identify_sensitive_data function should return an empty list"
0 commit comments