mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 14:29:51 -04:00
Renamed DESKPRO_TEAM_ID to DESKPRO_DEPT_ID to match name of param in
api call. Added DESKPRO_ASSIGNED_AGENT_TEAM_ID so that tickets routed correctly.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import pytest
|
||||
from flask import (url_for, current_app)
|
||||
from flask import url_for
|
||||
from werkzeug.exceptions import InternalServerError
|
||||
from unittest.mock import Mock, ANY
|
||||
|
||||
@@ -48,6 +48,7 @@ def test_post_feedback_with_no_name_email(app_, mocker):
|
||||
ANY,
|
||||
data={
|
||||
'department_id': ANY,
|
||||
'assigned_agent_team_id': ANY,
|
||||
'subject': 'Notify feedback',
|
||||
'message': 'Environment: http://localhost/\n\n\n\nblah',
|
||||
'person_email': ANY},
|
||||
@@ -69,6 +70,7 @@ def test_post_feedback_with_name_email(app_, mocker):
|
||||
data={
|
||||
'subject': 'Notify feedback',
|
||||
'department_id': ANY,
|
||||
'assigned_agent_team_id': ANY,
|
||||
'message': 'Environment: http://localhost/\n\nSteve Irwin\nrip@gmail.com\nblah',
|
||||
'person_email': ANY},
|
||||
headers=ANY)
|
||||
@@ -94,6 +96,7 @@ def test_log_error_on_post(app_, mocker):
|
||||
data={
|
||||
'subject': 'Notify feedback',
|
||||
'department_id': ANY,
|
||||
'assigned_agent_team_id': ANY,
|
||||
'message': 'Environment: http://localhost/\n\nSteve Irwin\nrip@gmail.com\nblah',
|
||||
'person_email': ANY},
|
||||
headers=ANY)
|
||||
|
||||
Reference in New Issue
Block a user