mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Add fixtures for alice, bob, and carol
This commit is contained in:
parent
7b0e758bc1
commit
7f9314845a
@ -223,6 +223,54 @@ def user2_pk():
|
||||
return USER2_PK
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def alice():
|
||||
from bigchaindb.common.crypto import generate_key_pair
|
||||
return generate_key_pair()
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def alice_privkey(alice):
|
||||
return alice.private_key
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def alice_pubkey(alice):
|
||||
return alice.public_key
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def bob():
|
||||
from bigchaindb.common.crypto import generate_key_pair
|
||||
return generate_key_pair()
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def bob_privkey(bob):
|
||||
return bob.private_key
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def bob_pubkey(carol):
|
||||
return bob.public_key
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def carol():
|
||||
from bigchaindb.common.crypto import generate_key_pair
|
||||
return generate_key_pair()
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def carol_privkey(carol):
|
||||
return carol.private_key
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def carol_pubkey(carol):
|
||||
return carol.public_key
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def b():
|
||||
from bigchaindb import Bigchain
|
||||
|
Loading…
x
Reference in New Issue
Block a user