<reponame>tortis/CodeWithFriends-Spring2020<gh_stars>10-100
import os

DEBUG = os.getenv("DEBUG", 'True') == 'True'
TESTING = os.getenv("TESTING", 'True') == 'True'
PORT = int(os.getenv("PORT"))

# Only relevant for testing
TEST_PHONE = '+15005550006'
TEST_PHONE_TO = os.getenv("TEST_PHONE_TO")

# Application specific phone numbers
FROM_PHONE_NUMBER = TEST_PHONE if DEBUG else os.getenv("FROM_PHONE_NUMBER")
FROM_PHONE_NUMBER_SID = os.getenv("PFROM_PHONE_NUMBER_SID")

# Relevant for Sending
TWILIO_ACCOUNT_SID = os.getenv("TEST_ACCOUNT_SID") if TESTING else os.getenv("TWILIO_ACCOUNT_SID")
TWILIO_AUTH_TOKEN = os.getenv("TEST_AUTH_TOKEN") if TESTING else os.getenv("TWILIO_AUTH_TOKEN")

DATABASE_PATH = os.getenv("DATABASE_PATH")

import os

DEBUG = os.getenv("DEBUG", 'True') == 'True'
TESTING = os.getenv("TESTING", 'True') == 'True'
PORT = int(os.getenv("PORT"))

# Only relevant for testing
TEST_PHONE = '+15005550006'
TEST_PHONE_TO = os.getenv("TEST_PHONE_TO")

# Application specific phone numbers
FROM_PHONE_NUMBER = TEST_PHONE if DEBUG else os.getenv("FROM_PHONE_NUMBER")
FROM_PHONE_NUMBER_SID = os.getenv("PFROM_PHONE_NUMBER_SID")

# Relevant for Sending
TWILIO_ACCOUNT_SID = os.getenv("TEST_ACCOUNT_SID") if TESTING else os.getenv("TWILIO_ACCOUNT_SID")
TWILIO_AUTH_TOKEN = os.getenv("TEST_AUTH_TOKEN") if TESTING else os.getenv("TWILIO_AUTH_TOKEN")

DATABASE_PATH = os.getenv("DATABASE_PATH")
# Only relevant for testing # Application specific phone numbers # Relevant for Sending