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]
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]
def test_get_static_paths_if_app_has_no_static_folder(self, app): assert get_static_paths(app) == []