File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -40,8 +40,8 @@ class MockResource(Resource):
40
40
def get (self ):
41
41
return "OK" , 200 , {"Access-Control-Allow-Origin" : "*" }
42
42
43
- app .register_blueprint (my_blueprint1 , url_prefix = "" )
44
43
api1 .add_resource (MockResource , "/some/urls" )
44
+ app .register_blueprint (my_blueprint1 , url_prefix = "" )
45
45
46
46
with app .test_request_context (path = "some_path.html" ):
47
47
registry = _get_current_registry (api = api1 )
@@ -101,7 +101,6 @@ def test_get_current_registry_request_features_and_docs():
101
101
app = Flask (__name__ )
102
102
app .config ["basePath" ] = "/abc/123"
103
103
my_blueprint1 = Blueprint ("my_blueprint1" , __name__ )
104
- app .register_blueprint (my_blueprint1 , url_prefix = "" )
105
104
_ = swagger .docs (
106
105
Api (my_blueprint1 ),
107
106
apiVersion = "0.1" ,
@@ -111,6 +110,7 @@ def test_get_current_registry_request_features_and_docs():
111
110
api_spec_url = "/api/spec" ,
112
111
description = "Blueprint1 Description" ,
113
112
)
113
+ app .register_blueprint (my_blueprint1 , url_prefix = "" )
114
114
115
115
with app .test_request_context (path = "some_path.html" ):
116
116
registry = _get_current_registry ()
You can’t perform that action at this time.
0 commit comments