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