mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-10 10:03:38 -04:00
@@ -5,7 +5,7 @@ from flask import json
|
||||
from freezegun import freeze_time
|
||||
from jsonschema import ValidationError
|
||||
|
||||
from app.models import NOTIFICATION_CREATED, TemplateType
|
||||
from app.enums import NotificationStatus, TemplateType
|
||||
from app.schema_validation import validate
|
||||
from app.v2.notifications.notification_schemas import get_notifications_request
|
||||
from app.v2.notifications.notification_schemas import (
|
||||
@@ -19,7 +19,7 @@ valid_get_json = {}
|
||||
|
||||
valid_get_with_optionals_json = {
|
||||
"reference": "test reference",
|
||||
"status": [NOTIFICATION_CREATED],
|
||||
"status": [NotificationStatus.CREATED],
|
||||
"template_type": [TemplateType.EMAIL],
|
||||
"include_jobs": "true",
|
||||
"older_than": "a5149c32-f03b-4711-af49-ad6993797d45",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import pytest
|
||||
from flask import json
|
||||
|
||||
from app.models import TemplateType
|
||||
from app.enums import TemplateType
|
||||
from app.utils import DATETIME_FORMAT
|
||||
from tests import create_service_authorization_header
|
||||
from tests.app.db import create_template
|
||||
|
||||
@@ -4,7 +4,7 @@ import pytest
|
||||
from flask import json
|
||||
from jsonschema.exceptions import ValidationError
|
||||
|
||||
from app.models import TemplateType
|
||||
from app.enums import TemplateType
|
||||
from app.schema_validation import validate
|
||||
from app.v2.template.template_schemas import (
|
||||
get_template_by_id_request,
|
||||
|
||||
@@ -4,7 +4,7 @@ import pytest
|
||||
from flask import json
|
||||
from jsonschema.exceptions import ValidationError
|
||||
|
||||
from app.models import TemplateType
|
||||
from app.enums import TemplateType
|
||||
from app.schema_validation import validate
|
||||
from app.v2.templates.templates_schemas import (
|
||||
get_all_template_request,
|
||||
|
||||
Reference in New Issue
Block a user