-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ed85992
commit 63ac03d
Showing
3 changed files
with
19 additions
and
4 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 |
---|---|---|
|
@@ -88,3 +88,11 @@ def test_user_email(caplog): | |
|
||
for record in caplog.records: | ||
assert record.levelno < logging.WARNING | ||
|
||
|
||
def test_user_invalid_email(caplog): | ||
"fetch a user by email, with invalid items. Will" | ||
fresh = FreshDesk(FRESHDESK_HOST, FRESHDESK_KEY) | ||
emails = ["", 5, "[email protected]"] | ||
for email in emails: | ||
agent = fresh._get_agent_by_email(email) |
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