Example #1
0
    def test_removes_pii_works_even_if_pii_element_doesnt_exist(self):
        modified_sample_package_show_result = sample_package_show_result.copy()
        del modified_sample_package_show_result['author']

        res = remove_pii(modified_sample_package_show_result)
        assert not any(elem in PII_LIST for elem in res)
Example #2
0
def dgu_organization_show(context, data_dict):
    data_dict['include_users'] = False
    return remove_pii(organization_show(context, data_dict))
Example #3
0
 def test_removes_pii_from_package_show(self):
     res = remove_pii(sample_package_show_result.copy())
     assert not any(elem in PII_LIST for elem in res)
Example #4
0
def dgu_package_show(context, data_dict):
    return remove_pii(package_show(context, data_dict))