User Preferences-

Hello

Regarding lab
Chapter 2: User-Facing Backend

Ticket: User Preferences

i am getting an error while running the test

tests\test_user_preferences.py F… [100%]

================================== FAILURES ===================================
________________ test_invalid_user_should_not_have_preferences ________________

client = <FlaskClient <Flask ‘mflix.factory’>>

@pytest.mark.user_preferences
def test_invalid_user_should_not_have_preferences(client):
    # delete the test user if it exists
    delete_user('foobaz@bar.com')
    preferences = {
        "color": "green",
        "favorite_letter": "q",
        "favorite_number": 42
    }

    result = update_prefs('foobaz@bar.com', preferences)
  assert result.get('error', None) is not None

E AttributeError: ‘UpdateResult’ object has no attribute ‘get’

tests\test_user_preferences.py:18: AttributeError
============================= 39 tests deselected =============================
============= 1 failed, 3 passed, 39 deselected in 13.96 seconds ==============

any idea someone?

Thanks