Skip to content

Commit

Permalink
Source Facebook Marketing #5190 - merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaliizazmic committed Nov 1, 2021
1 parent c2235d7 commit 8fa7d60
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,13 @@ def test_compare_two_records_nested_with_different_orders(obj1, obj2, is_same):
assert output_diff, f"{obj1} shouldnt be equal to {obj2}"


def test_exclude_fields(sorted_data):
""""""
def test_exclude_fields():
"""Test that check ignoring fields"""
data = [sorted_data(), ]
ignored_fields = [
"organization_id",
]
serializer = partial(make_hashable, exclude_fields=ignored_fields)
output = map(serializer, sorted_data)
output = map(serializer, data)
for item in output:
assert "organization_id" not in item

0 comments on commit 8fa7d60

Please sign in to comment.