Commit Graph

6602 Commits (04063cfdb2a225141110d3f14c0734f9fe20b88a)

Author SHA1 Message Date
arjunhassard e55fb50551 documentation for genesis slashing protocol inc. correctness verification protocol 2020-05-24 22:20:43 -06:00
K Prasch 8b7ba918b5
Merge pull request #1998 from vzotova/estimate-bidders
Estimate number of bidders, functional test for enable-claiming
2020-05-22 14:48:09 -07:00
K Prasch 705b44577e
Merge pull request #2032 from fjarri/assert-fix
Check the actual boolean values instead of asserting a non-empty tuple
2020-05-22 12:37:48 -07:00
Bogdan Opanchuk 51a3096805 Check the actual boolean values instead of asserting a non-empty tuple (which always passes) 2020-05-22 12:09:10 -07:00
K Prasch 1fe2a75aaa
Merge pull request #2003 from KPrasch/laggy-infura
Test reproducing double CA bug and Fix 1/2 of (#2002)
2020-05-22 11:53:39 -07:00
Kieran Prasch f87194ebca
What are snails even trying to do? 2020-05-22 10:09:54 -07:00
Kieran Prasch 4f222b6d7f
Use codecov CI orb flag for coverage report aggregation. 2020-05-22 09:50:31 -07:00
Derek Pierre 2b1b4cfeca
Merge pull request #2019 from derekpierre/license-hook
Add pre-commit hook to ensure that the nucypher license is included in python files
2020-05-22 09:27:05 -04:00
derekpierre 3e0bea5997 Update latest files after rebase with nucypher license. 2020-05-22 09:07:41 -04:00
derekpierre aaca1db128 Use specific commit hash for versioning of `insert-license` pre-commit hook. 2020-05-22 08:55:15 -04:00
derekpierre 668f25bc38 Add pre-commit hook to ensure that AGPL license is included in python source files 2020-05-22 08:55:06 -04:00
Victoria cbf7ca4b29 Apply suggestions from code review #1998
Co-authored-by: Derek Pierre <derek.pierre@gmail.com>
2020-05-22 12:14:39 +03:00
vzotova 84121f4bee Estimate number of bidders that can be checked with the provided amount of gas in CLI, functional test for enable-claiming 2020-05-22 12:14:39 +03:00
David Núñez 1cf79b283e
Merge pull request #1989 from KPrasch/act-test
Advancing Mock Tools; > 90% Test coverage for CLI Actions
2020-05-22 04:21:21 +02:00
Kieran Prasch cf7cb682e0
RFCs for #1989; Transforms registry source manager into a formal context manager. 2020-05-21 18:54:40 -07:00
David Núñez f00bb6f6b0
Test select_client_account_for_staking() action, which handles account selection in the potential presence of allocations 2020-05-21 18:18:46 -07:00
Kieran Prasch 329fc3bebd
Respond to RFCs in PR #1989 2020-05-21 17:13:45 -07:00
Kieran Prasch 54bfbf466f
Implicitly validate all agent method checksum address inputs if that are decorated @contract_api 2020-05-21 17:12:13 -07:00
Kieran Prasch f1b130afa1
Additional annotations and comments. 2020-05-21 16:01:26 -07:00
Kieran Prasch 4169dbb004
Implement Constant Sorrow for contract api method markers. 2020-05-21 15:39:01 -07:00
David Núñez f3d1057ce3
Fix Stake.__eq__ and introduce basic unit tests for it 2020-05-21 15:09:56 -07:00
Kieran Prasch 9b9ddac234
Respond to RFCs in PR #1989 2020-05-21 14:56:45 -07:00
Kieran Prasch bf6d2ad65f
Fixes ContractAgency.get_agent return annotation and alias. Thanks @fjarri. 2020-05-21 14:56:33 -07:00
Arjun Hassard fd8a04f3a4
Merge pull request #2020 from KPrasch/master
Relock dependencies
2020-05-21 14:20:56 -07:00
Kieran Prasch 0890b39239
Relock dependencies 2020-05-21 13:05:17 -07:00
Kieran Prasch 9c55d5a117
Adapting new tests to api changes caused by rebase. 2020-05-20 22:18:32 -07:00
Kieran Prasch 87cc3b7767
Allow properties to be collected and handled in auto mocking. 2020-05-20 21:46:21 -07:00
Kieran Prasch 00f042ecde
Mark property method contract calls as ATTRIBUTE 2020-05-20 21:46:21 -07:00
Kieran Prasch 5a65fa6dfb
Respond to RFCs in PR #1989 2020-05-20 21:46:20 -07:00
Kieran Prasch b47ca79c7d
Manually apply end-of-file-fixer to diff. 2020-05-20 21:45:05 -07:00
Kieran Prasch 394332eef0
Clear side effects on agent mock by default 2020-05-20 21:45:05 -07:00
Kieran R. Prasch 5250305f4a
Ensure unifirm mock coverage of contracts in FT suite 2020-05-20 21:45:04 -07:00
Kieran Prasch 5bacc2f61c
Polish off condensed auto agent mocking and example implementation on worklock CLI FT 2020-05-20 21:44:05 -07:00
Kieran Prasch eea65c6444
Use function type flags with contract api decorator 2020-05-20 21:43:47 -07:00
Kieran Prasch 7913427352
Condensed auto-mocking for agents. 2020-05-20 21:43:45 -07:00
Kieran Prasch ddfb80880f
Unified contract api markers 2020-05-20 21:42:23 -07:00
Kieran Prasch 9b9efceee3
Proof of concept for metaprogramming apoproach to contract mocking. 2020-05-20 21:42:23 -07:00
Kieran Prasch 40f2a75020
Decorate all contract api methods @contract_call or @transaction 2020-05-20 21:42:23 -07:00
Kieran Prasch 3f7d06421e
Fixes rest host determination test bug and reorders the module for faster feedback.
Ensures non-interactive 'rapid deployment' test; Remove __eq__ from configs.
2020-05-20 21:42:23 -07:00
Kieran Prasch f0167dbc79
Sacrifice a little accuracy for a little flexibility on account selection test; Save another to chew on later 2020-05-20 21:42:23 -07:00
Kieran Prasch 9765653bc2
Include pytest option -s in pytest.ini (compliments stdout trap fixture) 2020-05-20 21:42:23 -07:00
Kieran Prasch 5ce1134950
Keep CLI action module names verbs; Fixture cleanup. 2020-05-20 21:42:21 -07:00
Kieran Prasch 55563952a5
More granular config CLI actions testing: 100% coverage achieved. 2020-05-20 21:41:45 -07:00
Kieran Prasch 69a828a727
suffix some tests with '_cli_action' for easier test feedback. 2020-05-20 21:41:45 -07:00
Kieran Prasch c425ea6aa5
Tightening down config actions tests 2020-05-20 21:41:45 -07:00
Kieran Prasch 722d26bcb4
Common factory function module for test character configurations 2020-05-20 21:41:45 -07:00
Kieran Prasch 44de13d149
Cleanup and parameterize fixtures for FT coverage; Introduces test configuration factory functions for pyetst fixtures. 2020-05-20 21:41:44 -07:00
Kieran Prasch 4a5aed06a1
CLI config action test coverage and related bug fixes. 2020-05-20 21:40:55 -07:00
Kieran Prasch b9de67505d
Stubs for CLI config actions; Post rebase cleanup. 2020-05-20 21:40:55 -07:00
Kieran Prasch d58dc65029
Reorg for configuration actions, split into smaller functions. 2020-05-20 21:40:55 -07:00