web_api_client = <swh.web.client.client.WebAPIClient object at 0x7f56be788ef0>
web_api_mock = <requests_mock.mocker.Mocker object at 0x7f56be788cf8>
def test_authenticate_success(web_api_client, web_api_mock):
rel_id = "b9db10d00835e9a43e2eebef2db1d04d4ae82342"
url = f"{web_api_client.api_url}/release/{rel_id}/"
web_api_client.oidc_session = Mock()
web_api_client.oidc_session.refresh.return_value = copy(oidc_profile)
access_token = oidc_profile["access_token"]
refresh_token = "user-refresh-token"
> web_api_client.authenticate(refresh_token)
E AttributeError: 'WebAPIClient' object has no attribute 'authenticate'
.tox/py3/lib/python3.7/site-packages/swh/web/client/tests/test_web_api_client.py:132: AttributeError
TEST RESULT
TEST RESULT
- Run At
- Aug 27 2020, 1:43 PM