requests_ecp/tests/test_auth.py
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert auth.hostname_override == "idp.test.com"
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert session.auth._num_ecp_auth == 0
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert requests_ecp_auth.is_ecp_auth_redirect(resp)
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert not requests_ecp_auth.is_gitlab_auth_redirect(resp)
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert isinstance(auth, requests_gssapi.HTTPKerberosAuth)
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert auth.hostname_override == "kerberos.test.com"
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert auth.password == "passwd"
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert response.headers['location'] == "https://test"
# make sure that we log that we did the auth loop
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert isinstance(auth, requests_gssapi.HTTPKerberosAuth)
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert not requests_ecp_auth.is_ecp_auth_redirect(resp)
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert auth.username == "me"
- Exclude checks
Possible hardcoded password: 'mypasswd' Open
Open
auth = self.TEST_CLASS._init_auth(
"https://idp.test.com",
username="me",
password="mypasswd",
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert auth.password == "mypasswd"
- Exclude checks
Possible hardcoded password: 'passwd' Open
Open
session.auth = self.TEST_CLASS(
idp="test",
username="user",
password="passwd",
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert isinstance(auth, HTTPBasicAuth)
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert isinstance(auth, HTTPBasicAuth)
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert auth.username == "user"
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert auth.password == "passwd"
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert isinstance(auth, HTTPBasicAuth)
- Exclude checks
Possible hardcoded password: 'passwd' Open
Open
session.auth = self.TEST_CLASS(
idp="test",
username="user",
password="passwd",
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert session.auth._num_ecp_auth
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert requests_ecp_auth.is_gitlab_auth_redirect(resp)
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert auth.username == "me"
- Exclude checks