Skip to content

Commit

Permalink
general: fix failing tests due to packages updates
Browse files Browse the repository at this point in the history
* Pins the oauthlib package (there is a bug).

* Updates the tests for rebuilding access token.

Signed-off-by: Sebastian Witowski <witowski.sebastian@gmail.com>
  • Loading branch information
switowski authored and drjova committed Oct 13, 2017
1 parent 0411429 commit dc952c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
'Flask>=0.11.1',
'future>=0.16.0',
'invenio-accounts>=1.0.0b7',
'oauthlib>=1.1.2,!=2.0.0',
'oauthlib>=1.1.2,<2.0.0',
'pyjwt>=1.5.0',
'six>=1.10.0',
'SQLAlchemy-Utils[encrypted]>=0.31.0',
Expand Down
2 changes: 1 addition & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def test_rebuilding_access_tokens(models_fixture):
token = Token.query.filter(Token.id == tokens_before[0].id).one()
assert token.access_token != tokens_before[0].access_token
else: # python 3
with pytest.raises(UnicodeDecodeError):
with pytest.raises(ValueError):
Token.query.filter(Token.id == tokens_before[0].id).one()

db.session.expunge_all()
Expand Down

0 comments on commit dc952c6

Please sign in to comment.