jMyles
|
e0918764d8
|
Big fixup for the remaining errors blocking integration.learning.
|
2020-08-10 12:54:35 -07:00 |
jMyles
|
784814c4bb
|
Don't ship blockchain_bob with known_nodes; he can use his domain hardcoded nodes. Also, don't start his learning loop after the fact. This caused this test to pass even when he was unable to actually find the nodes in join_policy.
|
2020-08-10 12:52:31 -07:00 |
jMyles
|
046c8e3989
|
Reworked logic to determine good serials for mocks.
|
2020-08-10 12:49:54 -07:00 |
jMyles
|
14165eb4db
|
Instead of the first Ursula, choose the first Ursula who is supposed to have the map.
|
2020-08-10 12:48:31 -07:00 |
jMyles
|
106b60f3f7
|
Mocking one layer out (setting policy) for these tests.
|
2020-08-10 12:42:15 -07:00 |
tuxxy
|
52038e36dc
|
Create a MockLMDBEnv w/ fixture and fix up some tests
Patch the PolicyArrangement model to fix discovery phase tests
|
2020-08-10 15:38:12 +02:00 |
David Núñez
|
3595f3dae6
|
Make restoration of default values conditional
|
2020-08-04 19:01:54 +02:00 |
David Núñez
|
460ce4cb08
|
Restore default return values in mock agents
Mock.reset_mock() doesn't do that by default so return values remained between test modules
|
2020-08-04 18:37:30 +02:00 |
vzotova
|
9897c0f93c
|
Fix agent mocking: use instance to hold mocked method instead of class
|
2020-06-25 20:08:27 +03:00 |
David Núñez
|
b0e9a40f9c
|
...and relocate and improve tests for get_confirmations
|
2020-06-05 04:05:39 +02:00 |
Bogdan Opanchuk
|
ef9ab01a3a
|
Replace mocking click.prompt() and click.confirm() with mocking stdin/getpass.
|
2020-05-28 14:42:04 -07:00 |
Kieran Prasch
|
28cce2fccc
|
Reorganize tests into multiple suites.
|
2020-05-27 14:11:25 -07: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 |
Kieran Prasch
|
cf7cb682e0
|
RFCs for #1989; Transforms registry source manager into a formal context manager.
|
2020-05-21 18:54:40 -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 |
Kieran Prasch
|
9b9ddac234
|
Respond to RFCs in PR #1989
|
2020-05-21 14:56:45 -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
|
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
|
7913427352
|
Condensed auto-mocking for agents.
|
2020-05-20 21:43:45 -07:00 |
Kieran Prasch
|
9b9efceee3
|
Proof of concept for metaprogramming apoproach to contract mocking.
|
2020-05-20 21:42:23 -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
|
c8e37210fe
|
Iterating on spy wrapper and mock agents
|
2020-05-20 21:38:31 -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
|
a1113d2a20
|
Resolve two TODOs wrt staker methods and painting.
|
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 Prasch
|
61cdcb9dd7
|
Generate a Mock object for every transaction and call on mock agents.
|
2020-05-20 21:26:20 -07:00 |
derekpierre
|
c1d93d8941
|
Add "end-of-file-fixer" to pre-commit hooks
|
2020-05-19 14:28:29 -04:00 |
Kieran Prasch
|
f263e4c2a0
|
Promote and clear constants modules;
Partly convert constants to Pathlib, Use safe mock IP address constants.
Accommodate more pathlib in tests
|
2020-05-15 08:36:11 -07:00 |
Kieran Prasch
|
3b4e9b47dc
|
Optimize imports for the entire codebase
|
2020-05-15 08:34:25 -07:00 |
Kieran Prasch
|
a935dc8e2d
|
Annihilate the sandbox
|
2020-05-15 08:33:38 -07:00 |
Kieran Prasch
|
bf75d33e3e
|
Respond to RFCs in PR #1949
|
2020-05-13 08:08:00 -07:00 |
Kieran Prasch
|
90d4c6ae94
|
Control mock registry source for mock testerchain; Test touch ups.
|
2020-05-08 19:20:54 -07:00 |
Kieran Prasch
|
c177d2dca1
|
Introduce mock interfaces module
|
2020-05-08 19:20:54 -07:00 |
Kieran R. Prasch
|
1164db20f4
|
Intro MockPolicyManagerAgent
|
2020-05-08 19:20:54 -07:00 |
Kieran Prasch
|
7f67226fe3
|
Detailing worklock functionality test assertions with new agent mocking API
|
2020-05-08 19:20:54 -07:00 |
Kieran Prasch
|
83d847c4ab
|
Tight spy based test on worklock bidding CLI
|
2020-05-08 19:20:54 -07:00 |
Kieran R. Prasch
|
c8bf00cd69
|
Spy on mocked transactions and calls through mock agents
|
2020-05-08 19:20:54 -07:00 |
Kieran R. Prasch
|
6aec7c634d
|
Mock at the ContractAgent level while preserving agent routing
|
2020-05-08 19:20:54 -07:00 |
Kieran Prasch
|
5c6f2a5e8c
|
Transaction and call mocking scheme implmentation
|
2020-05-08 19:20:54 -07:00 |
Kieran Prasch
|
570e656a17
|
Complete example of mocking at the agent layer
|
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 |