mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-02 17:48:50 -04:00
remove option for branding to sometimes not show search
it wouldn't show search if there were under a certain amount of letter or email branding options - however we know there will always be more than that amount so lets remove some complexity. Also, rename the SearchTemplatesForm because it can search anything - it just prompts you to search by name is all.
This commit is contained in:
@@ -2526,28 +2526,6 @@ def mock_get_all_email_branding(mocker):
|
||||
)
|
||||
|
||||
|
||||
@pytest.fixture(scope='function')
|
||||
def mock_get_more_email_branding_than_can_fit_onscreen(mocker):
|
||||
def _get_more_email_branding_than_can_fit_onscreen():
|
||||
return create_email_brandings(8)
|
||||
|
||||
return mocker.patch(
|
||||
'app.email_branding_client.get_all_email_branding',
|
||||
side_effect=_get_more_email_branding_than_can_fit_onscreen
|
||||
)
|
||||
|
||||
|
||||
@pytest.fixture(scope='function')
|
||||
def mock_get_email_branding_that_can_fit_onscreen(mocker):
|
||||
def _get_email_branding_that_can_fit_onscreen():
|
||||
return create_email_brandings(4)
|
||||
|
||||
return mocker.patch(
|
||||
'app.email_branding_client.get_all_email_branding',
|
||||
side_effect=_get_email_branding_that_can_fit_onscreen
|
||||
)
|
||||
|
||||
|
||||
@pytest.fixture(scope='function')
|
||||
def mock_get_all_letter_branding(mocker):
|
||||
def _get_letter_branding():
|
||||
|
||||
Reference in New Issue
Block a user