-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Format tcket description and fix tests
- Loading branch information
1 parent
2c4baf4
commit 27409c9
Showing
2 changed files
with
32 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,14 +73,19 @@ def match_json(request): | |
expected = { | ||
"product_id": 42, | ||
"subject": "Support Request", | ||
"description": "t6 just requested to go live.<br><br>" | ||
"description": "t6 just requested to go live.<br>" | ||
"<br>" | ||
"- Department/org: department_org_name<br>" | ||
"- Intended recipients: internal, external, public<br>" | ||
"- Purpose: main_use_case<br>" | ||
"- Notification types: email, sms<br>" | ||
"- Expected monthly volume: 100k+<br>" | ||
"- Expected email volumes: Daily more_email (100001) / Yearly within_limit" | ||
"- Expected SMS volumes: Daily 0 / Yearly 0" | ||
"<br>" | ||
"- Expected email volumes:<br>" | ||
"- Daily: above_limit (None)<br>" | ||
"- Yearly: within_limit<br>" | ||
"<br>" | ||
"- Expected SMS volumes:<br>" | ||
"- Daily: more_sms (54321)<br>" | ||
"- Yearly: above_limit<br>" | ||
"---<br>" | ||
"http://localhost:6012/services/8624bd36-b70b-4d4b-a459-13e1f4770b92", | ||
"email": "[email protected]", | ||
|
@@ -116,12 +121,12 @@ def match_json(request): | |
"service_url": "http://localhost:6012/services/8624bd36-b70b-4d4b-a459-13e1f4770b92", | ||
"notification_types": "email, sms", | ||
"expected_volume": "100k+", | ||
"daily_email_volume": "more_email", | ||
"annual_email_volume": "within-limit", | ||
"daily_sms_volume": "0", | ||
"annual_sms_volume": "0", | ||
"how_many_more_email": 100001, | ||
"how_many_more_sms": None, | ||
"daily_email_volume": "above_limit", | ||
"annual_email_volume": "within_limit", | ||
"daily_sms_volume": "more_sms", | ||
"annual_sms_volume": "above_limit", | ||
"how_many_more_email": None, | ||
"how_many_more_sms": 54321, | ||
} | ||
with notify_api.app_context(): | ||
response = freshdesk.Freshdesk(ContactRequest(**data)).send_ticket() | ||
|