Skip to content

Updated jinja2 to <=3.1.2.#150

Open
safiyat wants to merge 3 commits into
rantav:masterfrom
safiyat:update_jinja2
Open

Updated jinja2 to <=3.1.2.#150
safiyat wants to merge 3 commits into
rantav:masterfrom
safiyat:update_jinja2

Conversation

@safiyat

@safiyat safiyat commented Jul 16, 2024

Copy link
Copy Markdown

No description provided.

Signed-off-by: Md Safiyat Reza <safiyat@voereir.com>
@safiyat safiyat marked this pull request as draft July 16, 2024 03:42
@safiyat

safiyat commented Jul 16, 2024

Copy link
Copy Markdown
Author

Developed and tested on Python 3.8.19 with the following packages:

aniso8601==9.0.1
atomicwrites==1.4.1
attrs==23.2.0
bandit==1.6.2
beautifulsoup4==4.12.3
blinker==1.8.2
bs4==0.0.2
certifi==2024.7.4
charset-normalizer==3.3.2
click==8.1.7
colorama==0.4.6
commitizen==1.16.4
coverage==7.6.0
decli==0.5.2
dparse==0.6.3
entrypoints==0.3
flake8==3.7.9
Flask==3.0.3
Flask-RESTful==0.3.10
-e git+ssh://git@github.com/safiyat/flask-restful-swagger.git@ab3612a3b46c651761600ab1ae7baa2a96b4a83c#egg=flask_restful_swagger
gitdb==4.0.11
GitPython==3.1.43
idna==3.7
importlib_metadata==8.0.0
isort==4.3.21
itsdangerous==2.2.0
Jinja2==2.11.3
MarkupSafe==2.0.1
mccabe==0.6.1
mock==3.0.5
more-itertools==10.3.0
packaging==20.9
pbr==6.0.0
pluggy==0.13.1
prompt_toolkit==3.0.47
py==1.11.0
pycodestyle==2.5.0
pyflakes==2.1.1
pyparsing==3.1.2
pytest==5.2.4
pytest-cov==2.8.1
pytz==2024.1
PyYAML==6.0.1
questionary==1.10.0
requests==2.32.3
safety==1.8.7
six==1.16.0
smmap==5.0.1
soupsieve==2.5
stevedore==5.2.0
termcolor==1.1.0
tomli==2.0.1
tomlkit==0.5.11
urllib3==2.2.2
wcwidth==0.2.13
Werkzeug==3.0.3
yapf==0.28.0
zipp==3.19.2

@safiyat safiyat marked this pull request as ready for review July 16, 2024 03:46
@safiyat

safiyat commented Jul 16, 2024

Copy link
Copy Markdown
Author
$ pytest
=========================================================================================== test session starts ============================================================================================
platform darwin -- Python 3.8.19, pytest-5.2.4, py-1.11.0, pluggy-0.13.1
rootdir: /Users/safiyat/GitHub/flask-restful-swagger, inifile: pytest.ini
plugins: cov-2.8.1
collected 144 items

tests/test_add_model.py .................                                                                                                                                                            [ 11%]
tests/test_deduce_swagger_type.py .......................                                                                                                                                            [ 27%]
tests/test_deduce_swagger_type_flat.py ..................                                                                                                                                            [ 40%]
tests/test_docs.py ..                                                                                                                                                                                [ 41%]
tests/test_extract_path_arguments.py .......                                                                                                                                                         [ 46%]
tests/test_extract_swagger_path.py ........                                                                                                                                                          [ 52%]
tests/test_get_current_registry.py ....                                                                                                                                                              [ 54%]
tests/test_make_class.py ...                                                                                                                                                                         [ 56%]
tests/test_merge_parameter_list.py .......                                                                                                                                                           [ 61%]
tests/test_model.py .....                                                                                                                                                                            [ 65%]
tests/test_nested_class.py ..                                                                                                                                                                        [ 66%]
tests/test_nested_func.py ....                                                                                                                                                                       [ 69%]
tests/test_operation.py ....                                                                                                                                                                         [ 72%]
tests/test_parse_docs.py ......                                                                                                                                                                      [ 76%]
tests/test_register_once.py ...                                                                                                                                                                      [ 78%]
tests/test_render_endpoint.py .                                                                                                                                                                      [ 79%]
tests/test_render_hompage.py .                                                                                                                                                                       [ 79%]
tests/test_render_page.py ...                                                                                                                                                                        [ 81%]
tests/test_resource_lister.py .                                                                                                                                                                      [ 82%]
tests/test_sanitize_doc.py ....                                                                                                                                                                      [ 85%]
tests/test_staticfiles.py ..............                                                                                                                                                             [ 95%]
tests/test_swagger_endpoint_class.py .....                                                                                                                                                           [ 98%]
tests/test_swagger_endpoint_func.py .                                                                                                                                                                [ 99%]
tests/test_swagger_registry.py .                                                                                                                                                                     [100%]

============================================================================================= warnings summary =============================================================================================
tests/test_add_model.py::test_integration_test_add_model[MockBasicObject-properties0-required0-defaults0]
tests/test_add_model.py::test_integration_test_add_model[MockTodoItem-properties1-required1-defaults1]
tests/test_add_model.py::test_integration_test_add_model[MockBasicWithSwaggerMetadata1-properties4-required4-defaults4]
tests/test_add_model.py::test_integration_test_add_model[MockBasicWithSwaggerMetadata2-properties5-required5-defaults5]
tests/test_add_model.py::test_add_model_get_docs[MockBasicObject]
tests/test_add_model.py::test_add_model_get_docs[MockTodoItem]
tests/test_add_model.py::test_add_model_init_parsing_args[MockTodoItem-required0-defaults0]
  /Users/safiyat/GitHub/flask-restful-swagger/flask_restful_swagger/swagger.py:463: DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec()
    argspec = inspect.getargspec(model_class.__init__)

-- Docs: https://docs.pytest.org/en/latest/warnings.html
===================================================================================== 144 passed, 7 warnings in 0.37s ======================================================================================

safiyat added 2 commits July 16, 2024 09:21
Signed-off-by: Md Safiyat Reza <safiyat@voereir.com>
Signed-off-by: Md Safiyat Reza <safiyat@voereir.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant