예제 #1
0
 def test_get_static_paths_if_blueprint_has_no_static_folder(self, app):
     bp = Blueprint('bp', __name__)
     app.register_blueprint(bp)
     assert get_static_paths(app) == [app.static_folder]
예제 #2
0
 def test_get_static_paths_if_paths_has_only_unique_entries(self, app):
     bp = Blueprint('bp', __name__, static_folder='static')
     app.register_blueprint(bp)
     assert get_static_paths(app) == [app.static_folder]
예제 #3
0
 def test_get_static_paths_if_app_has_no_static_folder(self, app):
     assert get_static_paths(app) == []