Ejemplo n.º 1
0
 def test_marking_additional_fields_as_sensitive_doesnt_affect_unrelated_models(self):
     assert get_sensitive_fields(Person) == {'biography', 'first_name', 'last_name', 'email', 'date_of_birth'}
Ejemplo n.º 2
0
 def test_app_with_no_sensitive_fields_is_correctly_decorated(self):
     assert get_sensitive_fields(Book) == set()
Ejemplo n.º 3
0
 def test_marking_additional_fields_as_sensitive_using_settings(self):
     assert get_sensitive_fields(Book) == {'title', }
Ejemplo n.º 4
0
 def test_app_is_decorated_with_sensitive_fields(self):
     assert get_sensitive_fields(Person) == {'biography', 'first_name', 'last_name', 'email', 'date_of_birth'}