Let it work without config.py, as we configure it through the test
This commit is contained in:
parent
975c3bb3f3
commit
a8dbafd21e
@ -31,7 +31,7 @@ def create_app(config=None):
|
||||
|
||||
if config is None:
|
||||
# load the instance config, if it exists, when not testing
|
||||
app.config.from_pyfile('config.py', silent=False)
|
||||
app.config.from_pyfile('config.py', silent=True)
|
||||
else:
|
||||
# load the test config if passed in
|
||||
app.config.from_pyfile(config, silent=True)
|
||||
|
Loading…
x
Reference in New Issue
Block a user