Skip to content

Commit 0dcf264

Browse files
committed
Re-ordered blueprint registration.
Signed-off-by: Md Safiyat Reza <[email protected]>
1 parent 41fe9cb commit 0dcf264

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_get_current_registry.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)