mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-25 00:33:58 -04:00
Localize notification_utils to the Admin!
This changeset copies everything in notifications_utils to turn into a local project module. It includes dependency changes to account for this adjustment and the notifications_utils tests. It also fixes all of the import statements. Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
This commit is contained in:
@@ -5,8 +5,8 @@ import pytest
|
||||
from flask import url_for
|
||||
from freezegun import freeze_time
|
||||
from itsdangerous import SignatureExpired
|
||||
from notifications_utils.url_safe_token import generate_token
|
||||
|
||||
from notifications_utils.url_safe_token import generate_token
|
||||
from tests.conftest import SERVICE_ONE_ID, url_for_endpoint_with_token
|
||||
|
||||
|
||||
|
||||
@@ -12,11 +12,11 @@ from zipfile import BadZipFile
|
||||
import pytest
|
||||
from flask import url_for
|
||||
from notifications_python_client.errors import HTTPError
|
||||
from notifications_utils.recipients import RecipientCSV
|
||||
from notifications_utils.template import SMSPreviewTemplate
|
||||
from xlrd.biffh import XLRDError
|
||||
from xlrd.xldate import XLDateAmbiguous, XLDateError, XLDateNegative, XLDateTooLarge
|
||||
|
||||
from notifications_utils.recipients import RecipientCSV
|
||||
from notifications_utils.template import SMSPreviewTemplate
|
||||
from tests import validate_route_permission, validate_route_permission_with_client
|
||||
from tests.conftest import (
|
||||
SERVICE_ONE_ID,
|
||||
@@ -979,7 +979,7 @@ def test_upload_valid_csv_shows_preview_and_table(
|
||||
'<td class="table-field-left-aligned"> <div> A </div> </td>',
|
||||
(
|
||||
'<td class="table-field-left-aligned"> '
|
||||
'<div> '
|
||||
"<div> "
|
||||
"<ul> "
|
||||
"<li>foo</li> <li>foo</li> <li>foo</li> "
|
||||
"</ul> "
|
||||
@@ -992,7 +992,7 @@ def test_upload_valid_csv_shows_preview_and_table(
|
||||
'<td class="table-field-left-aligned"> <div> B </div> </td>',
|
||||
(
|
||||
'<td class="table-field-left-aligned"> '
|
||||
'<div> '
|
||||
"<div> "
|
||||
"<ul> "
|
||||
"<li>foo</li> <li>foo</li> <li>foo</li> "
|
||||
"</ul> "
|
||||
@@ -1005,7 +1005,7 @@ def test_upload_valid_csv_shows_preview_and_table(
|
||||
'<td class="table-field-left-aligned"> <div> C </div> </td>',
|
||||
(
|
||||
'<td class="table-field-left-aligned"> '
|
||||
'<div> '
|
||||
"<div> "
|
||||
"<ul> "
|
||||
"<li>foo</li> <li>foo</li> "
|
||||
"</ul> "
|
||||
|
||||
@@ -3,8 +3,8 @@ import uuid
|
||||
|
||||
import pytest
|
||||
from flask import url_for
|
||||
from notifications_utils.url_safe_token import generate_token
|
||||
|
||||
from notifications_utils.url_safe_token import generate_token
|
||||
from tests.conftest import (
|
||||
create_api_user_active,
|
||||
create_user,
|
||||
|
||||
Reference in New Issue
Block a user