# -*- coding: utf-8 -*-
from soran.oauth import Token

def test_access_token(f_app, f_user, f_session):
    t = Token(user_id=f_user.id, client_id=f_app.client_id, _scopes='user')
    f_session.add(t)
    f_session.commit()
    tf = f_session.query(Token).first()
    assert tf
    assert tf.access_token
    assert tf.refresh_token
    assert t.access_token == tf.access_token

8046be8156470e27b1bd2bf50e2e4bf6eeab958d
<mask token>

<mask token>


def test_access_token(f_app, f_user, f_session):
    t = Token(user_id=f_user.id, client_id=f_app.client_id, _scopes='user')
    f_session.add(t)
    f_session.commit()
    tf = f_session.query(Token).first()
    assert tf
    assert tf.access_token
    assert tf.refresh_token
    assert t.access_token == tf.access_token

from soran.oauth import Token


def test_access_token(f_app, f_user, f_session):
    t = Token(user_id=f_user.id, client_id=f_app.client_id, _scopes='user')
    f_session.add(t)
    f_session.commit()
    tf = f_session.query(Token).first()
    assert tf
    assert tf.access_token
    assert tf.refresh_token
    assert t.access_token == tf.access_token

# -*- coding: utf-8 -*-
from soran.oauth import Token

def test_access_token(f_app, f_user, f_session):
    t = Token(user_id=f_user.id, client_id=f_app.client_id, _scopes='user')
    f_session.add(t)
    f_session.commit()
    tf = f_session.query(Token).first()
    assert tf
    assert tf.access_token
    assert tf.refresh_token
    assert t.access_token == tf.access_token
