Commit Graph

332 Commits (4a0b79b2ca6f524c3436e0866933980e33cc244f)

Author SHA1 Message Date
vzotova 4a0b79b2ca StakingEscrow: confirmActivity -> commitToNextPeriod, lastActivePeriod -> lastCommittedPeriod 2020-05-13 20:21:52 +03:00
vzotova 6039002408 Rename policy reward to policy fee 2020-05-13 20:21:51 +03:00
Kieran Prasch c177d2dca1 Introduce mock interfaces module 2020-05-08 19:20:54 -07:00
Kieran Prasch 1b49236deb Handle registry source manager via mock testerchain 2020-05-08 19:20:54 -07:00
Kieran Prasch 066f778dda Restore allocation handling in fixtures 2020-05-08 19:20:54 -07:00
Kieran Prasch e8fbd5956a Handle token economics and mock testerchain compadibility with the larger test suite as a whole. 2020-05-08 19:20:54 -07:00
Kieran R. Prasch a58af7daf3 Mock and functional-scoped test grouping (fixtures) 2020-05-08 19:20:54 -07:00
Kieran Prasch d7f99e7a53 Introduce MockBlockchain; pytestfixture tweaks. 2020-05-08 19:20:54 -07:00
Kieran Prasch 0c2f684d71 Neat layout for agent mocking and cli unit testing 2020-05-08 19:20:54 -07:00
Kieran R. Prasch cf1c40c919 Proof of Concept fast CLI test. 2020-05-08 19:20:54 -07:00
Kieran Prasch 923832b3c5 Hack and slash with mock web3 backend 2020-05-08 19:20:54 -07:00
K Prasch 6e1ae2fe8f
Merge pull request #1964 from KPrasch/squash
Bug Fixes: WSS Provider, Keystore file Handling
2020-05-08 09:59:27 -07:00
Kieran Prasch 20358ae9a2
Dont add test account twice in tests. 2020-05-07 10:10:34 -07:00
David Núñez d180d81c8a Batch deposit methods in StakingEscrowAgent and unit tests 2020-05-05 20:06:16 +02:00
David Núñez d3a88dc205 First test for Trustee: proposing MultiSig management operations 2020-04-15 02:36:22 +02:00
David Núñez e1dc124317 Adapt everything else to no secrets: deployers, tests, CLI, docs, etc 2020-04-09 17:59:56 +02:00
Kieran R. Prasch 64786b572d
Allow opt-out for uptime checks via configuration and disable it during tests by default. 2020-03-31 11:05:25 -07:00
Kieran Prasch a26daf57b5
Renames TransactingPower init kwarg to account. 2020-03-26 14:55:38 -07:00
Kieran Prasch 9c1aec73af
refining tpower and signer exception handling, in tandem. 2020-03-26 14:55:38 -07:00
Kieran R. Prasch 027adbfdc7
Implements extracted signers in Character configuration and init, tests to follow. 2020-03-26 14:53:40 -07:00
Kieran R. Prasch 1685c37407
Moving TPower in a single account signer-based backend. 2020-03-26 14:53:40 -07:00
K Prasch 5fe81dc65d
Merge pull request #1773 from vzotova/worklock-updates-opt4
🐳 Worklock updates (option 4)
2020-03-19 10:21:11 -07:00
vzotova 38ddc5e591 WorkLock: force refund at CLI, actor, agent layers 2020-03-13 22:57:39 +03:00
vzotova a2deca9eb8 WorkLock: cancellation window 2020-03-13 21:51:05 +03:00
vzotova 5c719dd1a9 New constraints in WorkLock: minimum allowed bid, cancellation only during bidding, removed unclaimed tokens 2020-03-13 21:51:04 +03:00
K Prasch ab978c09be
Merge pull request #1759 from KPrasch/configurate
Offline Configuration Selection
2020-03-13 10:56:05 -07:00
Kieran Prasch 489c048712
KeyStore -> Datastore 2020-03-09 14:50:18 -07:00
Kieran Prasch eb32902704
Keep missing configuration tests passing; Always use mocked registry source. 2020-03-05 10:02:20 -08:00
Kieran Prasch cf1ca2093f
Interactive network selection; Touch ups. 2020-03-03 09:17:09 -08:00
David Núñez 7e1dec2950
Merge pull request #1662 from vzotova/rate-range
[DO NOT MERGE YET] Reward rate range
2020-02-27 12:05:03 -08:00
vzotova 4188cc673f Set min rate for a staker in actor, agent and CLI layers 2020-02-20 12:05:50 +03:00
Kieran R. Prasch 3f3386d360 Allow for forcible blockchain interface registration for tests. 2020-02-19 20:53:39 -07:00
jMyles cf07c3add6 Why wasn't blockchain side channel always compatible with the federated one? 2020-02-15 17:58:48 -07:00
jMyles 6c73075867 I don't like the sound of that. 2020-02-08 01:18:51 -08:00
jMyles dc202da06e Include enrico instance when resetting capsule_side_channel for test convenience. 2020-02-08 01:18:51 -08:00
jMyles 447b9b6e5c We don't need the temporary download_registry fix anymore. 2020-02-08 01:18:51 -08:00
jMyles 5f0c7ce5ef Several test fixes, most notable including that, in the capsule_side_channel fixture, we now keep the same enrico until it is reset(). 2020-02-08 01:18:51 -08:00
jMyles 677c8ddcfb When generating WorkOrder, if CFrags are being retained, return two tuples of WorkOrders - one complete, the other incomplete. Also some refactoring. 2020-02-08 01:18:50 -08:00
David Núñez c756b4ef14 Use new agency_local_registry fixture for CLI tests, and fix broken tests
Previously, we were supporting the consistency of our registry usage in a weird combination of fixtures' side-effects. Not anymore. CLI tests should use agency_local_registry, since it's a file-based mirror of the test_registry fixture when agency is assumed.
2020-02-07 11:28:34 +01:00
Kieran Prasch 5570d20df5 Unblocked by dnunez - Init stake via worklock allocation and ind. registry. 2020-01-30 10:27:29 -08:00
Kieran Prasch 657bc0b9a5 Third pass on Worklock CLI under new design\ patterns 2020-01-30 10:27:29 -08:00
Kieran Prasch 355d7ff887 Deprecates TestEconomics; Adds worklock supply and funding management - Extracts statistical methods to worklock agent. 2020-01-30 10:27:29 -08:00
Kieran R. Prasch 82dbfcfe89 First steps to integrate worklock deployment params via economics 2020-01-30 10:26:37 -08:00
David Núñez f1daae2463 Relocate NetworksInventory to nucypher.blockchain.eth.networks 2020-01-19 23:20:11 +01:00
David Núñez 3da6bdf087 Don't set globally a default domain in tests
Otherwise, tests are not modeling real behavior, where we don't have a default.
2020-01-19 19:58:38 +01:00
David Núñez b802af8223 A RegistrySourceManager for tests that only uses a tailored MockRegistrySource
It assumes that the only valid network is TEMPORARY_DOMAIN
2020-01-19 02:59:14 +01:00
David Núñez fe55ffc42c Preoperative marking before replantation surgery
We want to connect learning to "registry" domains
2020-01-18 19:40:19 +01:00
vzotova 3f888c8b51 Fix cli tests with policy creation 2020-01-10 13:14:01 +03:00
vzotova 4c983fc045 Update character layer for new start/end policy time 2020-01-10 13:14:00 +03:00
jMyles b49dcf98b3 Some more optimizations to lower test time. 2020-01-08 16:43:39 -08:00