-
Notifications
You must be signed in to change notification settings - Fork 320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update metadata tests #627
Conversation
} | ||
} | ||
metadata._fields_metadata = { | ||
'foo': foo_metadata |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest creating the other possible types of fields too, so we validate that the if
logical checks are correct.
We should at least have:
- A field of type
id
, which should be skipped - A field which is neither an
id
norpii
, which should also be skipped - A field which is not
id
but ispii
, for which mappings should be created
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added checks for other types of fields in the test__make_anonymization_mappings
test. This test__make_anonymization_mappings_unique_faked_value_in_field
just tests if there are repeats of a value in the id field.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh! My bad, I missed this. In any case, I like how you laid it out now!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me! I think it's ready to go.
} | ||
} | ||
metadata._fields_metadata = { | ||
'foo': foo_metadata |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh! My bad, I missed this. In any case, I like how you laid it out now!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Resolves #624