mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-30 06:21:50 -05:00
Refactored notifications_dao
- Introduce a `_raise` flag for `get_notification_by_id` so that sql alchemy will raise the NoResults error rather than the app - Refactor `dao_set_created_live_letter_api_notifications_to_pending` to use a join for getting services that don't have `letters_as_pdf` as marginally faster.
This commit is contained in:
@@ -25,9 +25,7 @@ def test_should_only_get_letter_notifications(
|
||||
assert ret == [sample_letter_notification]
|
||||
|
||||
|
||||
def test_should_ignore_letters_as_pdf(
|
||||
sample_letter_notification,
|
||||
):
|
||||
def test_should_ignore_letters_as_pdf(sample_letter_notification):
|
||||
service = create_service(service_permissions=[LETTER_TYPE, 'letters_as_pdf'])
|
||||
template = create_template(service, template_type=LETTER_TYPE)
|
||||
create_notification(template)
|
||||
|
||||
Reference in New Issue
Block a user