mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-05 02:41:14 -05:00
fix
This commit is contained in:
@@ -3,6 +3,7 @@ import uuid
|
|||||||
import pytest
|
import pytest
|
||||||
from sqlalchemy.exc import SQLAlchemyError
|
from sqlalchemy.exc import SQLAlchemyError
|
||||||
|
|
||||||
|
from app import db
|
||||||
from app.dao.service_email_reply_to_dao import (
|
from app.dao.service_email_reply_to_dao import (
|
||||||
add_reply_to_email_address_for_service,
|
add_reply_to_email_address_for_service,
|
||||||
archive_reply_to_email_address,
|
archive_reply_to_email_address,
|
||||||
@@ -186,9 +187,7 @@ def test_update_reply_to_email_address(sample_service):
|
|||||||
email_address="change_address@email.com",
|
email_address="change_address@email.com",
|
||||||
is_default=True,
|
is_default=True,
|
||||||
)
|
)
|
||||||
updated_reply_to = ServiceEmailReplyTo.query.get(
|
updated_reply_to = db.session.get(ServiceEmailReplyTo, first_reply_to.id)
|
||||||
ServiceEmailReplyTo, first_reply_to.id
|
|
||||||
)
|
|
||||||
|
|
||||||
assert updated_reply_to.email_address == "change_address@email.com"
|
assert updated_reply_to.email_address == "change_address@email.com"
|
||||||
assert updated_reply_to.updated_at
|
assert updated_reply_to.updated_at
|
||||||
|
|||||||
Reference in New Issue
Block a user