Removed deprecated FLASK_ENV
This commit is contained in:
parent
d961241079
commit
0aef0c32fc
|
@ -15,10 +15,10 @@ class Config:
|
|||
def __init__(self):
|
||||
db_name = None
|
||||
app_env = None
|
||||
if os.getenv("FLASK_ENV") == 'production':
|
||||
if os.getenv("FLASK_DEBUG") == 'production':
|
||||
db_name = 'hub_prod'
|
||||
app_env = 'PROD'
|
||||
elif os.getenv("FLASK_ENV") == 'testing':
|
||||
elif os.getenv("FLASK_DEBUG") == 'testing':
|
||||
db_name = 'test_db'
|
||||
app_env = 'TEST'
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ class BaseTest(TestCase):
|
|||
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
os.environ['FLASK_ENV'] = 'testing'
|
||||
os.environ['FLASK_DEBUG'] = 'testing'
|
||||
cls.app = app
|
||||
cls.client = cls.app.test_client()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user