Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion assets/requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ bandit>=1.6.2,<1.7.0
bs4>=0.0.1,<0.1.0
commitizen>=0.9.11,<1.17.0
isort>=4.3.21,<4.4.0
flake8>=3.7.9,<3.8.0s
flake8>=3.7.9,<3.8.0
markupsafe==2.0.1
mock>=3.0.5,<3.1.0
pytest>=4.6.9,<5.3.0
pytest-cov>=2.8.1,<2.9.0
Expand Down
2 changes: 1 addition & 1 deletion assets/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Application Requirements
Jinja2>=2.10.1,<3.0.0
Jinja2>=2.10.1,<=3.1.2
Flask-RESTful>=0.3.6
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
license="MIT",
long_description=long_description,
install_requires=[
"Jinja2>=2.10.1,<3.0.0",
"Jinja2>=2.10.1,<=3.1.2",
"Flask-RESTful>=0.3.6",
],
)
4 changes: 2 additions & 2 deletions tests/test_get_current_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ class MockResource(Resource):
def get(self):
return "OK", 200, {"Access-Control-Allow-Origin": "*"}

app.register_blueprint(my_blueprint1, url_prefix="")
api1.add_resource(MockResource, "/some/urls")
app.register_blueprint(my_blueprint1, url_prefix="")

with app.test_request_context(path="some_path.html"):
registry = _get_current_registry(api=api1)
Expand Down Expand Up @@ -101,7 +101,6 @@ def test_get_current_registry_request_features_and_docs():
app = Flask(__name__)
app.config["basePath"] = "/abc/123"
my_blueprint1 = Blueprint("my_blueprint1", __name__)
app.register_blueprint(my_blueprint1, url_prefix="")
_ = swagger.docs(
Api(my_blueprint1),
apiVersion="0.1",
Expand All @@ -111,6 +110,7 @@ def test_get_current_registry_request_features_and_docs():
api_spec_url="/api/spec",
description="Blueprint1 Description",
)
app.register_blueprint(my_blueprint1, url_prefix="")

with app.test_request_context(path="some_path.html"):
registry = _get_current_registry()
Expand Down