Update comments

This commit is contained in:
Michael Mintz 2016-05-30 16:57:46 -04:00
parent 80c03a0382
commit 83a34364b3
2 changed files with 13 additions and 0 deletions

View File

@ -73,6 +73,13 @@ S3_SELENIUM_SECRET_KEY = "[S3 SECRET KEY]"
# Default Email Credentials # Default Email Credentials
# (If tests send out emails, you can scan and verify them by using IMAP) # (If tests send out emails, you can scan and verify them by using IMAP)
# Here's a list of imap strings for known email providers:
# - Gmail: imap.gmail.com
# - Outlook/Live: imap-mail.outlook.com
# - Yahoo Mail: imap.mail.yahoo.com
# - AT&T: imap.mail.att.net
# - Comcast: imap.comcast.net
# - Verizon: incoming.verizon.net
EMAIL_USERNAME = "[TEST ACCOUNT GMAIL USERNAME]@gmail.com" EMAIL_USERNAME = "[TEST ACCOUNT GMAIL USERNAME]@gmail.com"
EMAIL_PASSWORD = "[TEST ACCOUNT GMAIL PASSWORD]" EMAIL_PASSWORD = "[TEST ACCOUNT GMAIL PASSWORD]"
EMAIL_IMAP_STRING = "imap.gmail.com" EMAIL_IMAP_STRING = "imap.gmail.com"

View File

@ -17,6 +17,12 @@ def jq_format(code):
def get_domain_url(url): def get_domain_url(url):
"""
Use this to convert a url like this:
https://blog.xkcd.com/2014/07/22/what-if-book-tour/
Into this:
https://blog.xkcd.com
"""
url_header = url.split('://')[0] url_header = url.split('://')[0]
simple_url = url.split('://')[1] simple_url = url.split('://')[1]
base_url = simple_url.split('/')[0] base_url = simple_url.split('/')[0]