Skip to content

Commit 50ea9ce

Browse files
committed
Adapt to latest Flask
1 parent 64502c2 commit 50ea9ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_flask_restful.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ class HelloResource(Resource):
169169
def get(self, hello_id):
170170
return 'hi'
171171

172-
bp = Blueprint(app, __name__)
172+
bp = Blueprint("bp", __name__)
173173
api = Api(bp)
174174
app.register_blueprint(bp, url_prefix='/v1')
175175
api.add_resource(HelloResource, '/hello')
@@ -187,7 +187,7 @@ class HelloResource(Resource):
187187
def get(self, hello_id):
188188
return 'hi'
189189

190-
bp = Blueprint(app, __name__)
190+
bp = Blueprint("bp", __name__)
191191
api = Api(bp)
192192
app.register_blueprint(bp, url_prefix='/v1')
193193
api.add_resource(HelloResource, '/hello')

0 commit comments

Comments
 (0)