mirror of https://github.com/nucypher/nucypher.git
Get tests running again
parent
43a87b4e95
commit
55dec8ff25
|
@ -37,7 +37,8 @@ from nucypher.data_sources import DataSource
|
||||||
from nucypher.keystore import keystore
|
from nucypher.keystore import keystore
|
||||||
from nucypher.keystore.db import Base
|
from nucypher.keystore.db import Base
|
||||||
from nucypher.keystore.keypairs import SigningKeypair
|
from nucypher.keystore.keypairs import SigningKeypair
|
||||||
from nucypher import network
|
from nucypher.network.character_control import bob
|
||||||
|
from nucypher.network.character_control import enrico
|
||||||
from nucypher.utilities.sandbox.blockchain import TesterBlockchain, token_airdrop
|
from nucypher.utilities.sandbox.blockchain import TesterBlockchain, token_airdrop
|
||||||
from nucypher.utilities.sandbox.constants import (NUMBER_OF_URSULAS_IN_DEVELOPMENT_NETWORK,
|
from nucypher.utilities.sandbox.constants import (NUMBER_OF_URSULAS_IN_DEVELOPMENT_NETWORK,
|
||||||
DEVELOPMENT_TOKEN_AIRDROP_AMOUNT, MOCK_URSULA_STARTING_PORT,
|
DEVELOPMENT_TOKEN_AIRDROP_AMOUNT, MOCK_URSULA_STARTING_PORT,
|
||||||
|
@ -336,7 +337,7 @@ def alice_control(federated_alice, federated_ursulas):
|
||||||
@pytest.fixture(scope='module')
|
@pytest.fixture(scope='module')
|
||||||
def bob_control(federated_bob, federated_ursulas):
|
def bob_control(federated_bob, federated_ursulas):
|
||||||
teacher_node = list(federated_ursulas)[0]
|
teacher_node = list(federated_ursulas)[0]
|
||||||
bob_control = make_bob_control(federated_bob, teacher_node)
|
bob_control = bob.make_bob_control(federated_bob, teacher_node)
|
||||||
bob_control.config['DEBUG'] = True
|
bob_control.config['DEBUG'] = True
|
||||||
bob_control.config['TESTING'] = True
|
bob_control.config['TESTING'] = True
|
||||||
yield bob_control.test_client()
|
yield bob_control.test_client()
|
||||||
|
@ -345,7 +346,7 @@ def bob_control(federated_bob, federated_ursulas):
|
||||||
@pytest.fixture(scope='module')
|
@pytest.fixture(scope='module')
|
||||||
def enrico_control(capsule_side_channel):
|
def enrico_control(capsule_side_channel):
|
||||||
_, data_source = capsule_side_channel
|
_, data_source = capsule_side_channel
|
||||||
enrico_control = make_enrico_control(data_source)
|
enrico_control = enrico.make_enrico_control(data_source)
|
||||||
enrico_control.config['DEBUG'] = True
|
enrico_control.config['DEBUG'] = True
|
||||||
enrico_control.config['TESTING'] = True
|
enrico_control.config['TESTING'] = True
|
||||||
yield enrico_control.test_client()
|
yield enrico_control.test_client()
|
||||||
|
|
Loading…
Reference in New Issue