Update comments
This commit is contained in:
parent
80c03a0382
commit
83a34364b3
|
@ -73,6 +73,13 @@ S3_SELENIUM_SECRET_KEY = "[S3 SECRET KEY]"
|
|||
|
||||
# Default Email Credentials
|
||||
# (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_PASSWORD = "[TEST ACCOUNT GMAIL PASSWORD]"
|
||||
EMAIL_IMAP_STRING = "imap.gmail.com"
|
||||
|
|
|
@ -17,6 +17,12 @@ def jq_format(code):
|
|||
|
||||
|
||||
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]
|
||||
simple_url = url.split('://')[1]
|
||||
base_url = simple_url.split('/')[0]
|
||||
|
|
Loading…
Reference in New Issue