mirror of https://github.com/nucypher/nucypher.git
Remove Moe CLI test.
parent
1cacffa153
commit
e3acb7788b
|
@ -1,37 +0,0 @@
|
|||
import pytest
|
||||
import pytest_twisted as pt
|
||||
from twisted.internet import threads
|
||||
|
||||
from nucypher.cli.main import nucypher_cli
|
||||
from nucypher.config.node import CharacterConfiguration
|
||||
from nucypher.utilities.sandbox.constants import MOCK_URSULA_STARTING_PORT, select_test_port
|
||||
from nucypher.utilities.sandbox.ursula import start_pytest_ursula_services
|
||||
|
||||
|
||||
@pytest.mark.skip("Moe shows up when you least expect him. Like in other people's tests on a different thread.")
|
||||
@pt.inlineCallbacks
|
||||
def test_run_moe(click_runner, federated_ursulas):
|
||||
|
||||
# Establish a running Teacher Ursula
|
||||
|
||||
ursula = list(federated_ursulas)[0]
|
||||
teacher_uri = ursula.seed_node_metadata(as_teacher_uri=True)
|
||||
|
||||
_ursula_output = yield threads.deferToThread(start_pytest_ursula_services, ursula=ursula)
|
||||
|
||||
args = ('moe',
|
||||
'--network', ':fake-domain:',
|
||||
'--teacher', teacher_uri,
|
||||
'--http-port', MOCK_URSULA_STARTING_PORT,
|
||||
'--learn-on-launch', # TODO: Dumb name. Don't use this in production.
|
||||
'--dry-run')
|
||||
|
||||
result = yield threads.deferToThread(click_runner.invoke,
|
||||
nucypher_cli, args,
|
||||
catch_exceptions=False)
|
||||
|
||||
assert result.exit_code == 0
|
||||
assert f"Running Moe on 127.0.0.1:{MOCK_URSULA_STARTING_PORT}"
|
||||
|
||||
reserved_ports = (CharacterConfiguration.DEFAULT_REST_PORT, CharacterConfiguration.DEFAULT_DEVELOPMENT_REST_PORT)
|
||||
assert MOCK_URSULA_STARTING_PORT not in reserved_ports
|
Loading…
Reference in New Issue