Пример #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)