File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -40,8 +40,8 @@ class MockResource(Resource):
4040 def get (self ):
4141 return "OK" , 200 , {"Access-Control-Allow-Origin" : "*" }
4242
43- app .register_blueprint (my_blueprint1 , url_prefix = "" )
4443 api1 .add_resource (MockResource , "/some/urls" )
44+ app .register_blueprint (my_blueprint1 , url_prefix = "" )
4545
4646 with app .test_request_context (path = "some_path.html" ):
4747 registry = _get_current_registry (api = api1 )
@@ -101,7 +101,6 @@ def test_get_current_registry_request_features_and_docs():
101101 app = Flask (__name__ )
102102 app .config ["basePath" ] = "/abc/123"
103103 my_blueprint1 = Blueprint ("my_blueprint1" , __name__ )
104- app .register_blueprint (my_blueprint1 , url_prefix = "" )
105104 _ = swagger .docs (
106105 Api (my_blueprint1 ),
107106 apiVersion = "0.1" ,
@@ -111,6 +110,7 @@ def test_get_current_registry_request_features_and_docs():
111110 api_spec_url = "/api/spec" ,
112111 description = "Blueprint1 Description" ,
113112 )
113+ app .register_blueprint (my_blueprint1 , url_prefix = "" )
114114
115115 with app .test_request_context (path = "some_path.html" ):
116116 registry = _get_current_registry ()
You can’t perform that action at this time.
0 commit comments