Kieran Prasch
00de9b3dda
Full type hinting and (nearly) docstring coverage for CLI actions.
2020-05-20 21:40:55 -07:00
Kieran Prasch
ed3b5b38ed
Fixes a bug in registry source management; Restore to original network inventory so it can be tested.
2020-05-20 21:40:53 -07:00
Kieran Prasch
8af47dae35
Relocate geth process start utility to cli.processes (not an action)
2020-05-20 21:40:13 -07:00
Kieran Prasch
3272b64003
Move checksum address from filepath utility to classmethod on character config where is wants to be scoped in the wild
2020-05-20 21:40:13 -07:00
Kieran R. Prasch
98e6a71740
Kick general networking and seednodes utilities out of cli actions into nucypher.utilities
2020-05-20 21:40:13 -07:00
Kieran Prasch
4619dd20a1
Test stub for @cygnusv
2020-05-20 21:40:13 -07:00
Kieran Prasch
3344ed2cbd
Test coverage for interactive network selection
2020-05-20 21:40:13 -07:00
Kieran Prasch
8cd5d83d3a
Test coverage for config file selection (stub)
2020-05-20 21:40:13 -07:00
Kieran R. Prasch
e919992ea0
100% test coverage for CLI auth actions
2020-05-20 21:40:11 -07:00
Kieran Prasch
0411461184
Test touch ups;
2020-05-20 21:39:30 -07:00
Kieran Prasch
c8e37210fe
Iterating on spy wrapper and mock agents
2020-05-20 21:38:31 -07:00
Kieran Prasch
f583567222
100% coverage on interactive eth account selection
2020-05-20 21:38:29 -07:00
Kieran R. Prasch
cc66d9310a
Test coverage and bug fixes for interactive client account selection with balances.
2020-05-20 21:36:25 -07:00
Kieran Prasch
78ed8fd145
Keep fast test fixtures scoped module where possible.
2020-05-20 21:33:01 -07:00
Kieran Prasch
c50fc58f6f
100% coverage on interactive stake selection
2020-05-20 21:33:01 -07:00
Kieran Prasch
a1113d2a20
Resolve two TODOs wrt staker methods and painting.
2020-05-20 21:33:01 -07:00
Kieran Prasch
f351333f58
Adds __eq__ for Stake objects.
2020-05-20 21:33:01 -07:00
Kieran Prasch
71dc3c0029
Stubbing CLI selection tests
2020-05-20 21:33:01 -07:00
Kieran Prasch
713eab4854
Deeper integration of agents with the Mock API.
2020-05-20 21:32:59 -07:00
Kieran R. Prasch
0895fe91ba
100% unit test coverage for cli auth actions.
2020-05-20 21:29:43 -07:00
Kieran R. Prasch
c7ae0081fe
Small adjustments to cli.actions.confirm: Use uppercase name as the magic word.
2020-05-20 21:29:01 -07:00
Kieran R. Prasch
8bb790d91a
Relocate keystore constants to test.constants
2020-05-20 21:28:59 -07:00
Kieran Prasch
61cdcb9dd7
Generate a Mock object for every transaction and call on mock agents.
2020-05-20 21:26:20 -07:00
Kieran Prasch
af86ff6dbe
Mock click.confirm fixture; Basis for confirm enable restaking test
2020-05-20 21:26:20 -07:00
Kieran R. Prasch
d72cff3162
Ice breaker cli actions test
2020-05-20 21:26:20 -07:00
K Prasch
a8bb61766e
Merge pull request #2018 from svenski123/1962-keystore-file-directory-handling
...
Fix up 3rd local keystore test case
2020-05-20 20:49:46 -07:00
Kristofer Peterson
b4225fab85
move test_keystore_signer.py from tests/blockchain/eth/clients to tests/blockchain/eth/clients/signers
...
remove dependency on test_ursula_local_keystore_cli_functionality from test_worklock_cli_functionality
(reverse-i-search)`mv ': git mv tests/blockchain/eth/{clients,signers}/test_keystore_signer.py
2020-05-21 04:15:07 +01:00
Kristofer Peterson
e90e18dee9
post rebase 3rd case
2020-05-21 03:15:44 +01:00
K Prasch
f12cb052eb
Merge pull request #1968 from svenski123/1962-keystore-file-directory-handling
...
Correct path handling in keystore signer / support individual files
2020-05-20 17:04:16 -07:00
Kristofer Peterson
9064b80a4d
clean up post rebase
2020-05-21 01:00:54 +01:00
David Núñez
690a959040
Merge pull request #2013 from KPrasch/lazy-import
...
Support for missing tests package
2020-05-20 22:00:57 +02:00
Kieran Prasch
f29e5523c6
Responds to RFCs in PR #2013 : Tests reflect the changes.
2020-05-20 12:36:21 -07:00
Kieran Prasch
83586978c1
Introduce development install required exception and module
2020-05-19 22:05:06 -07:00
Kieran Prasch
ac07ff7415
Exception handling for development installation required.
2020-05-19 21:57:36 -07:00
Kieran Prasch
ba81356224
Test describing crash behaviour when tests package is unavailable
2020-05-19 21:56:46 -07:00
K Prasch
4cbbe4a814
Merge pull request #2001 from derekpierre/end-of-file-fixer
...
Add "end-of-file-fixer" to pre-commit hooks
2020-05-19 20:51:50 -07:00
David Núñez
e7cfad704f
Fix double confirm activity when Ursula starts
...
LoopingCall.start() already had a now parameter, similar to our act_now
2020-05-20 02:56:28 +02:00
Kieran Prasch
fc721a1c26
Test reproducing double CA bug.
2020-05-19 16:37:15 -07:00
derekpierre
c1d93d8941
Add "end-of-file-fixer" to pre-commit hooks
2020-05-19 14:28:29 -04:00
Kristofer Peterson
43bf813aca
Rebase to nucypher/master followed by
...
Merge remote-tracking branch 'cygnusv/1962-keystore-file-directory-handling' into 1962-keystore-file-directory-handling
2020-05-19 16:48:18 +01:00
Kristofer Peterson
02f773b8e4
ursula config generation only passed provider_uri to select_client_account().
...
signer_uri has now been added to the call to allow accounts known only to the signer to be selected.
Note other character commands should be reviewed for this as well.
2020-05-19 16:38:02 +01:00
Kristofer Peterson
06f5630f0e
Remove (now) misleading comment
2020-05-19 16:38:02 +01:00
Kristofer Peterson
009dc81f1d
Updated ci cli tests for KeyStoreSigner.
...
Removed mocking of os.* syscalls, replaced with actual files in
temporary directories.
2020-05-19 16:35:05 +01:00
Kristofer Peterson
65e97f78e4
Update ci basic test cases.
...
As os.scandir is used by other supporting code (notably
shutil.rmtree), patching moved out of fixture.
2020-05-19 16:29:38 +01:00
Kristofer Peterson
f100e83edb
Correct path handling of keystore signer and support individual files in addition to directories.
...
Given path is stat'd and:
- if it is a directory, it is scanned and regular directory entries are processed
- if it is a regular file, it is processed
- if something else (i.e. device node, etc.), an exception is raised
2020-05-19 16:29:09 +01:00
Kristofer Peterson
52a899c5aa
ursula config generation only passed provider_uri to select_client_account().
...
signer_uri has now been added to the call to allow accounts known only to the signer to be selected.
Note other character commands should be reviewed for this as well.
2020-05-19 02:10:48 +02:00
Kristofer Peterson
e03f12af7f
Remove (now) misleading comment
2020-05-19 02:10:48 +02:00
Kristofer Peterson
887beb41dc
Updated ci cli tests for KeyStoreSigner.
...
Removed mocking of os.* syscalls, replaced with actual files in
temporary directories.
2020-05-19 02:10:43 +02:00
Kristofer Peterson
4126558322
Update ci basic test cases.
...
As os.scandir is used by other supporting code (notably
shutil.rmtree), patching moved out of fixture.
2020-05-19 01:56:17 +02:00
Kristofer Peterson
9b630150f4
Correct path handling of keystore signer and support individual files in addition to directories.
...
Given path is stat'd and:
- if it is a directory, it is scanned and regular directory entries are processed
- if it is a regular file, it is processed
- if something else (i.e. device node, etc.), an exception is raised
2020-05-19 01:55:20 +02:00