Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
samwelkanda committed Sep 14, 2023
1 parent 90b8dd5 commit a172bab
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/store/test_backed_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@ def test_backed_model_return_only_changed_values_false(mock_user):
def test_backed_model_return_only_changed_values_true(mock_user):
# Set the backing store to only return changed values
mock_user.backing_store.return_only_changed_values = True
# No changes have been made to the backing store, getters should return None
assert mock_user.id is None
assert mock_user.odata_type is None
assert mock_user.business_phones is None
# No changes have been made to the backing store
# enumerate should return an empty list
assert mock_user.backing_store.enumerate_() == []
# change a property value
mock_user.business_phones = ["+1 234 567 8901"]
# returns the changed value
assert mock_user.business_phones == ["+1 234 567 8901"]
assert mock_user.backing_store.enumerate_() == [('business_phones', (["+1 234 567 8901"], 1))]

0 comments on commit a172bab

Please sign in to comment.