duncanmmacleod/requests-ecp

View on GitHub
requests_ecp/tests/test_session.py

Summary

Maintainability
A
0 mins
Test Coverage

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

        assert requests_mock.call_count == 3
Severity: Info
Found in requests_ecp/tests/test_session.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

        assert sess.auth.idp == "test"
Severity: Info
Found in requests_ecp/tests/test_session.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

        assert isinstance(sess.auth, requests_ecp.HTTPECPAuth)
Severity: Info
Found in requests_ecp/tests/test_session.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

        assert sess.auth._idpauth is None
Severity: Info
Found in requests_ecp/tests/test_session.py by bandit

Possible hardcoded password: 'passwd'
Open

        with self.TEST_CLASS(
            idp="https://idp.example.com/profile/SAML2/SOAP/ECP",
            kerberos=False,
            username="user",
            password="passwd",
Severity: Info
Found in requests_ecp/tests/test_session.py by bandit

There are no issues that match your filters.

Category
Status