Hi,

I was going to open a wishlist bug to package the new upstream release, because new upstream release of python-flask-jwt-extended (4.4.3) fails two tests:

=================================== FAILURES =================================== __________________________ test_add_context_processor __________________________

app = <Flask 'tests.test_add_context_processor'>

    def test_add_context_processor(app):
        jwt_manager = JWTManager(app, add_context_processor=True)

        @jwt_manager.user_lookup_loader
        def user_lookup_callback(_jwt_header, _jwt_data):
            return "test_user"

        test_client = app.test_client()

        with app.test_request_context():
            access_token = create_access_token("username")

        access_headers = {"Authorization": "Bearer {}".format(access_token)}         response = test_client.get("/context_current_user", headers=access_headers)
>       assert response.text == "test_user"
E       AttributeError: 'WrapperTestResponse' object has no attribute 'text'

tests/test_add_context_processor.py:37: AttributeError

The 'text' property was added in version 2.1.


Cheers,

--
Emmanuel Arias
@eamanu
yaerobi.com

Attachment: OpenPGP_0xFA9DEC5DE11C63F1.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to