mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 22:40:31 -04:00
Convert IntegerFields to GovukIntegerFields
Changes those fields in the following forms: - FreeSMSAllowance - ProviderForm - ProviderRatioForm - ServiceDataRetentionEditForm Includes changes to templates that use this form and associated tests.
This commit is contained in:
@@ -5087,8 +5087,7 @@ def test_update_service_data_retention_return_validation_error_for_negative_days
|
||||
)
|
||||
assert response.status_code == 200
|
||||
page = BeautifulSoup(response.data.decode('utf-8'), 'html.parser')
|
||||
error_message = page.find('span', class_='error-message').text.strip()
|
||||
assert error_message == 'Must be between 3 and 90'
|
||||
assert 'Must be between 3 and 90' in page.find('span', class_='govuk-error-message').text
|
||||
assert mock_get_service_data_retention.called
|
||||
assert not mock_update_service_data_retention.called
|
||||
|
||||
|
||||
Reference in New Issue
Block a user