Ejemplo n.º 1
0
def test_login_with():
    data = {
        "openid": "0395BA18A5CD6255E5BA185E7BEBA242",
        "access_token": "12345678-SaMpLeTuo3m2avZxh5cjJmIrAfx4ZYyamdofM7IjU",
        "expires_in": 1382686496
    }
    User.login_with('weixin', data)
Ejemplo n.º 2
0
def test_is_linked():
    data = {
        'uid': '1',
        'access_token': 'xxx'
    }
    user = User.login_with('xxx', data)
    assert user.is_linked('xxx')
Ejemplo n.º 3
0
def test_unlink_from():
    data = {
        'uid': '1',
        'access_token': 'xxx'
    }
    user = User.login_with('xxx', data)
    user.unlink_from('xxx')
Ejemplo n.º 4
0
def test_login_with():
    data = {
        'uid': '1',
        'access_token': 'xxx'
    }
    User.login_with('xxx', data)
Ejemplo n.º 5
0
def test_login_with(): # type: () -> None
    data = {
        'uid': '1',
        'access_token': 'xxx'
    }
    User.login_with('xxx', data)
Ejemplo n.º 6
0
def test_is_linked():  # type: () -> None
    data = {'uid': '1', 'access_token': 'xxx'}
    user = User.login_with('xxx', data)
    assert user.is_linked('xxx')
Ejemplo n.º 7
0
def test_login_with():  # type: () -> None
    data = {'uid': '1', 'access_token': 'xxx'}
    User.login_with('xxx', data)
Ejemplo n.º 8
0
def test_unlink_from():  # type: () -> None
    data = {'uid': '1', 'access_token': 'xxx'}
    user = User.login_with('xxx', data)
    user.unlink_from('xxx')
Ejemplo n.º 9
0
def test_is_linked():  # type: () -> None
    data = {"uid": "1", "access_token": "xxx"}
    user = User.login_with("xxx", data)
    assert user.is_linked("xxx")
Ejemplo n.º 10
0
def test_unlink_from():  # type: () -> None
    data = {"uid": "1", "access_token": "xxx"}
    user = User.login_with("xxx", data)
    user.unlink_from("xxx")
Ejemplo n.º 11
0
def test_login_with():  # type: () -> None
    data = {"uid": "1", "access_token": "xxx"}
    User.login_with("xxx", data)
Ejemplo n.º 12
0
def test_login_with():
    data = {'uid': '1', 'access_token': 'xxx'}
    User.login_with('xxx', data)