python-taiga icon indicating copy to clipboard operation
python-taiga copied to clipboard

Missing refresh name:value pair in auth_user_success.json resource

Open uc-cjdavis opened this issue 4 years ago • 0 comments

Description

The tests/resources/auth_user_success.json file used in the tests.test_auth is missing the refresh token name:value pair that is available after a successful auth to the Taiga REST API (ref: https://docs.taiga.io/api.html#object-auth-user-detail). If the client.auth() function definition is updated to capture the refresh token, the tests.test_auth fails

Steps to reproduce

  1. Add after line 144 in client.py self.token_refresh = response.json()['refresh']
  2. Run tox -e pyx.x

Versions

Python 3.9 python-taiga latest version

Expected behaviour

Tests.test_auth.py runs successfully after feature added to code

Actual behaviour

Test fails

Additional information

This bug is being filed prior to a PR submission for a fix that will support another PR submission for refresh token support. Capturing the auth returned refresh token will allow for using the refresh auth token endpoint of the Taiga REST API

uc-cjdavis avatar Oct 12 '21 17:10 uc-cjdavis