flask-testing
flask-testing copied to clipboard
Unittest extensions for Flask
werkzeug just released 1.0.0, and the deprecated werkzeug.cached_property has been removed in favor of werkzeug.utils.cached_property. This was addressed in October by pull request # 141, but it seems like it...
tested on current master ``` venv $ pytest ==================================================================================== test session starts ===================================================================================== platform linux -- Python 3.9.12, pytest-7.1.2, pluggy-1.0.0 rootdir: /tmp/flask-testing collected 41 items tests/test_twill.py FF [ 4%] tests/test_utils.py...
Testing locally. Transform location paths, although the response may be just the path. Giving this error. '/' != 'http://localhost/' even when response.location is equal to '/' and location is equal...
I'm getting the error below when I use to flask.ext.testing.LiveServerTestCase class with python 3.3 ``` python Traceback (most recent call last): File "C:\Users\Reuber\env_stormy_flask\lib\site-packages\flask_testing\utils.py", line 345, in __call__ self._spawn_live_server() File "C:\Users\Reuber\env_stormy_flask\lib\site-packages\flask_testing\utils.py",...
Starting from werkzeug version 1, the cached_property class has been relocated from here, in which it was flag already as deprecated: https://github.com/pallets/werkzeug/blob/0.16.x/src/werkzeug/__init__.py into here: https://github.com/pallets/werkzeug/blob/master/src/werkzeug/utils.py In order to prevent issues...
Hello I have a problem when testing using mock I need to go to the page and do some action. But at the same time, I want to mock the...
The dependencies for flask-testing do not include a version of flask. This results in failure when attempting to use with flask 1.1.0 (released on July 4, 2019). The package is...
``` time STAGE=test APP_SETTINGS="authentek.server.config.TestingConfig" pytest authentek/tests/test_auth.py -k 'test_registration' =============================================================================================== test session starts =============================================================================================== platform linux -- Python 3.7.7, pytest-6.1.2, py-1.9.0, pluggy-0.13.1 rootdir: /usr/src/app, configfile: setup.cfg plugins: factoryboy-2.0.3, Faker-4.17.1 collected 9...
## This PR Fixes insecure content warning on readthedocs.io
No activity since 2017. Any future improvements?