Skip to content

Commit

Permalink
Merge pull request #344 from macisamuele/maci-fix-test-failure
Browse files Browse the repository at this point in the history
Fix test failure
  • Loading branch information
macisamuele authored Jun 3, 2019
2 parents 4b75ae4 + 8d81b56 commit a952bb8
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/model/model_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,12 @@ def test_model_delete_property(definitions_spec, user_type, user_kwargs):
# deleting a property defined in the spec should set the value to None
assert user.id is None

assert all(
user[property] == user_kwargs.get(property)
for property in definitions_spec['User']['properties']
if property != 'id'
)
properties_with_not_matching_values = {
prop_name
for prop_name in definitions_spec['User']['properties']
if prop_name != 'id' and user[prop_name] != user_kwargs.get(prop_name)
}
assert not properties_with_not_matching_values


def test_model_delete_not_existing_property(user_type, user_kwargs):
Expand Down

0 comments on commit a952bb8

Please sign in to comment.