Skip to content

Issue with flask_login version 0.6.2? #456

@sbrun

Description

@sbrun

Issue Type

  • Bug Report

Faraday version

Found in version 4.2.0 but reproduced it with version 4.1.0 (other versions not tested)

Steps to reproduce

I worked on the update of the package for Kali. During the build we run the tests and we have a lot of tests failure (784 failed) with the latest flask_login version 0.6.2 provided by Debian.

Debugging tracebacks (current results)

It's just one of the failures:

_____________ ERROR at setup of TestAgentAPIGeneric.test_run_fails _____________

logged_user = <User: test>
test_client = <CustomClient <CustomFlask 'faraday.server.app'>>

    @pytest.fixture
    def csrf_token(logged_user, test_client):
        session_response = test_client.get('/session')
>       return session_response.json.get('csrf_token')
E       AttributeError: 'NoneType' object has no attribute 'get'

tests/conftest.py:303: AttributeError
_ ERROR at setup of TestAgentAPIGeneric.test_run_agent_invalid_missing_executor_data _

logged_user = <User: test>
test_client = <CustomClient <CustomFlask 'faraday.server.app'>>

    @pytest.fixture
    def csrf_token(logged_user, test_client):
        session_response = test_client.get('/session')
>       return session_response.json.get('csrf_token')
E       AttributeError: 'NoneType' object has no attribute 'get'

tests/conftest.py:303: AttributeError

Reports/Extra data

If I use the "old" version 0.5.0 of flask_login, all the tests passed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions