authorized up snapshots with new token

This commit is contained in:
Cayo Puigdefabregas 2021-04-14 13:21:46 +02:00
parent ca85a1f221
commit 7ea3041aa0
1 changed files with 2 additions and 0 deletions

View File

@ -662,3 +662,5 @@ def test_get_wbconf(user: UserClient):
session = Session.query.filter_by(user_id=user.user['id'], session = Session.query.filter_by(user_id=user.user['id'],
type=SessionType.Internal).first() type=SessionType.Internal).first()
assert str(session.token) in env assert str(session.token) in env
user.user['token'] = str(session.token)
snapshot, _ = user.post(file('basic.snapshot'), res=Snapshot)