cloudkitty/cloudkitty/api
Rafael Weingärtner 885c9f077f Fix tests cases broken by flask >=2.0.1
Flask has been updated in the requirements projects from OpenStack [1].
This has broken some test cases that were mocking the root object
"flask.request".

Instead of mocking the root object, we address the issue by mocking only
the needed methods and attributes. This facilitates the understanding of
the unit test, and also helps people to pin-point problems right away.

[1] https://review.opendev.org/c/openstack/requirements/+/793023

Change-Id: I8703c7d3e69f35ef3e85234c27b4743242111f3d
2021-06-07 18:19:32 +02:00
..
v1 Remove six 2021-01-12 09:02:22 +08:00
v2 Custom fields in summary get API 2020-09-08 15:05:06 +00:00
__init__.py Added API service 2014-08-08 15:51:22 +02:00
app.py Fix tests cases broken by flask >=2.0.1 2021-06-07 18:19:32 +02:00
app.wsgi Add WSGI support for `cloudkitty-api' 2017-07-18 12:55:11 +02:00
middleware.py Removing author identification in all files 2019-07-22 12:21:54 +00:00
root.py Add a base resource for v2 API endpoints 2019-05-14 11:16:15 +00:00