duncanmmacleod/requests-ecp

View on GitHub
requests_ecp/tests/test_auth.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 auth.hostname_override == "idp.test.com"
Severity: Info
Found in requests_ecp/tests/test_auth.py by bandit

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

        assert session.auth._num_ecp_auth == 0
Severity: Info
Found in requests_ecp/tests/test_auth.py by bandit

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

    assert requests_ecp_auth.is_ecp_auth_redirect(resp)
Severity: Info
Found in requests_ecp/tests/test_auth.py by bandit

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

    assert not requests_ecp_auth.is_gitlab_auth_redirect(resp)
Severity: Info
Found in requests_ecp/tests/test_auth.py by bandit

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

        assert isinstance(auth, requests_gssapi.HTTPKerberosAuth)
Severity: Info
Found in requests_ecp/tests/test_auth.py by bandit

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

        assert auth.hostname_override == "kerberos.test.com"
Severity: Info
Found in requests_ecp/tests/test_auth.py by bandit

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

        assert auth.password == "passwd"
Severity: Info
Found in requests_ecp/tests/test_auth.py by bandit

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

        assert response.headers['location'] == "https://test"
        # make sure that we log that we did the auth loop
Severity: Info
Found in requests_ecp/tests/test_auth.py by bandit

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

        assert isinstance(auth, requests_gssapi.HTTPKerberosAuth)
Severity: Info
Found in requests_ecp/tests/test_auth.py by bandit

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

    assert not requests_ecp_auth.is_ecp_auth_redirect(resp)
Severity: Info
Found in requests_ecp/tests/test_auth.py by bandit

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

        assert auth.username == "me"
Severity: Info
Found in requests_ecp/tests/test_auth.py by bandit

Possible hardcoded password: 'mypasswd'
Open

        auth = self.TEST_CLASS._init_auth(
            "https://idp.test.com",
            username="me",
            password="mypasswd",
Severity: Info
Found in requests_ecp/tests/test_auth.py by bandit

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

        assert auth.password == "mypasswd"
Severity: Info
Found in requests_ecp/tests/test_auth.py by bandit

Possible hardcoded password: 'passwd'
Open

            session.auth = self.TEST_CLASS(
                idp="test",
                username="user",
                password="passwd",
Severity: Info
Found in requests_ecp/tests/test_auth.py by bandit

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

        assert isinstance(auth, HTTPBasicAuth)
Severity: Info
Found in requests_ecp/tests/test_auth.py by bandit

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

        assert isinstance(auth, HTTPBasicAuth)
Severity: Info
Found in requests_ecp/tests/test_auth.py by bandit

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

        assert auth.username == "user"
Severity: Info
Found in requests_ecp/tests/test_auth.py by bandit

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

        assert auth.password == "passwd"
Severity: Info
Found in requests_ecp/tests/test_auth.py by bandit

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

        assert isinstance(auth, HTTPBasicAuth)
Severity: Info
Found in requests_ecp/tests/test_auth.py by bandit

Possible hardcoded password: 'passwd'
Open

            session.auth = self.TEST_CLASS(
                idp="test",
                username="user",
                password="passwd",
Severity: Info
Found in requests_ecp/tests/test_auth.py by bandit

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

        assert session.auth._num_ecp_auth
Severity: Info
Found in requests_ecp/tests/test_auth.py by bandit

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

    assert requests_ecp_auth.is_gitlab_auth_redirect(resp)
Severity: Info
Found in requests_ecp/tests/test_auth.py by bandit

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

        assert auth.username == "me"
Severity: Info
Found in requests_ecp/tests/test_auth.py by bandit

There are no issues that match your filters.

Category
Status