Browse Source

instance path is set in the following files of tests cases

pull/1642/head
Yash Lodha 9 years ago
parent
commit
42bc4dd61a
  1. 2
      flask/testsuite/test_apps/config_module_app.py
  2. 2
      flask/testsuite/test_apps/config_package_app/__init__.py
  3. 2
      flask/testsuite/test_apps/main_app.py

2
flask/testsuite/test_apps/config_module_app.py

@ -1,4 +1,4 @@
import os
import flask
here = os.path.abspath(os.path.dirname(__file__))
app = flask.Flask(__name__,instance_path=os.path.join(os.path.abspath(os.path.dirname(__file__)),'instance'))
app = flask.Flask(__name__, instance_path=os.path.join(os.path.abspath(os.path.dirname(__file__)),'instance'))

2
flask/testsuite/test_apps/config_package_app/__init__.py

@ -1,4 +1,4 @@
import os
import flask
here = os.path.abspath(os.path.dirname(__file__))
app = flask.Flask(__name__,instance_path=os.path.join(os.path.abspath(os.path.dirname(os.path.dirname(__file__))),'instance'))
app = flask.Flask(__name__, instance_path=os.path.join(os.path.abspath(os.path.dirname(os.path.dirname(__file__))),'instance'))

2
flask/testsuite/test_apps/main_app.py

@ -2,4 +2,4 @@ import os
import flask
# Test Flask initialization with main module.
app = flask.Flask('__main__',instance_path=os.path.join(os.path.abspath(os.path.dirname('__main__')),'instance'))
app = flask.Flask('__main__', instance_path=os.path.join(os.path.abspath(os.path.dirname('__main__')),'instance'))

Loading…
Cancel
Save