mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-05 16:38:59 -04:00
Refactor unit tests
This commit is contained in:
@@ -59,4 +59,4 @@ def test_should_return_400_when_sms_code_is_too_short(notifications_admin, notif
|
||||
data = json.loads(response.get_data(as_text=True))
|
||||
assert len(data.keys()) == 1
|
||||
assert 'sms_code' in data
|
||||
assert data['sms_code'].sort() == ['Code must be 5 digits', 'Code does not match'].sort()
|
||||
assert set(data['sms_code']) == ['Code must be 5 digits', 'Code does not match'].sort()
|
||||
|
||||
Reference in New Issue
Block a user