コード例 #1
0
ファイル: conftest.py プロジェクト: Qabel/qabel-index
def simple_identity():
    return {
        'public_key': encode_key(PUBLIC_KEY),
        'drop_url': 'http://example.com',
        'alias': 'public alias',
    }
コード例 #2
0
ファイル: conftest.py プロジェクト: Qabel/qabel-index
def identity(db):
    identity = Identity(alias=ALIAS, drop_url='http://127.0.0.1:6000/qabel_user', public_key=encode_key(PUBLIC_KEY))
    identity.save()
    return identity
コード例 #3
0
def simple_identity():
    return {
        'public_key': encode_key(b'this would be a public key (32b)'),
        'drop_url': 'http://example.com',
        'alias': 'public alias',
    }
コード例 #4
0
def identity(db):
    identity = Identity(alias=ALIAS,
                        drop_url='http://127.0.0.1:6000/qabel_user',
                        public_key=encode_key(PUBLIC_KEY))
    identity.save()
    return identity
コード例 #5
0
ファイル: conftest.py プロジェクト: AndanGagar/qabel-index
def simple_identity():
    return {
        'public_key': encode_key(PUBLIC_KEY),
        'drop_url': 'http://localhost/1234567890123456789012345678901234567890123',
        'alias': 'public alias',
    }
コード例 #6
0
ファイル: conftest.py プロジェクト: AndanGagar/qabel-index
def identity(db):
    identity = Identity(alias=ALIAS, drop_url='http://localhost/1234567890123456789012345678901234567890123', public_key=encode_key(PUBLIC_KEY))
    identity.save()
    return identity