mirror of https://github.com/nucypher/nucypher.git
Since we use agency_local_registry fixture now, remove registry mock in test_felix
Really closes #1346pull/1655/head
parent
4b161121c2
commit
a91f0d26a2
|
@ -59,13 +59,7 @@ def test_run_felix(click_runner, testerchain, agency_local_registry, deploy_user
|
|||
'--provider', TEST_PROVIDER_URI)
|
||||
_original_read_function = LocalContractRegistry.read
|
||||
|
||||
try:
|
||||
# Mock live contract registry reads
|
||||
LocalContractRegistry.read = lambda *a, **kw: test_registry.read()
|
||||
result = click_runner.invoke(nucypher_cli, init_args, catch_exceptions=False, env=envvars)
|
||||
finally:
|
||||
# Restore original read function.
|
||||
LocalContractRegistry.read = _original_read_function
|
||||
result = click_runner.invoke(nucypher_cli, init_args, catch_exceptions=False, env=envvars)
|
||||
assert result.exit_code == 0
|
||||
|
||||
configuration_file_location = os.path.join(MOCK_CUSTOM_INSTALLATION_PATH_2, FelixConfiguration.generate_filename())
|
||||
|
|
Loading…
Reference in New Issue