fix some tests

This commit is contained in:
Joshua Taillon
2022-10-25 17:38:55 -06:00
committed by Sam
parent b2509ff1c6
commit d36a1f0ac0
5 changed files with 21 additions and 6 deletions

View File

@ -1394,6 +1394,7 @@ class TestUserPreferencesUpdate(ApiTestCaseMixin):
language=input_language,
imperial_units=True,
display_ascent=False,
date_format='yyyy-MM-dd'
)
),
headers=dict(Authorization=f'Bearer {auth_token}'),
@ -1407,6 +1408,7 @@ class TestUserPreferencesUpdate(ApiTestCaseMixin):
assert data['data']['imperial_units'] is True
assert data['data']['language'] == expected_language
assert data['data']['timezone'] == 'America/New_York'
assert data['data']['date_format'] == 'yyyy-MM-dd'
assert data['data']['weekm'] is True
@pytest.mark.parametrize(

View File

@ -856,7 +856,7 @@ def edit_user_preferences(auth_user: User) -> Union[Dict, HttpResponse]:
}
:<json boolean display_ascent: display highest ascent records and total
:<json string date_format: the format used to format dates throughout the interface
:<json string date_format: the format used to display dates in the app
:<json boolean imperial_units: display distance in imperial units
:<json string language: language preferences
:<json string timezone: user time zone