Commit graph

5 commits

Author SHA1 Message Date
Jonathan Zernik
dd927036a5
Add block_info fixture to global conftest (#1584) 2021-10-12 19:00:44 -07:00
Jonathan Zernik
fc691ffeb2
Add call args assertions bitcoin client test (#1541)
* Add assertions for call args for some bitcoin client mocks

* Simplify bitcoin core client

* Add assertions on call args for getblockcount

* Add test for make_request method of bitcoin core client

* Use make_request method for bitcoin connection error tests

* Remove old comments

* Use call arg assertions for all methods of bitcoin core client
2021-10-08 12:29:27 -07:00
Jonathan Zernik
391fe7474c
Use deserialized block header in info object (#1536)
* Change block info struct to hold deserialized block header

* Delete bitcoin util module
2021-10-07 20:54:14 -07:00
Jonathan Zernik
315a84f846
Add comment for block hash and block header fixtures in bitcoin client test (#1533) 2021-10-07 19:52:45 -07:00
Jonathan Zernik
e0c63e2927
Add tests for bitcoin client get count method (#1530)
* Add tests for bitcoin client get count method

* Rename bitcoin exceptions

* Got test working for bitcoin http error

* Added tests for get block count and get block hash

* Added tests for all bitcoin client methods

* Added tests for invalid results

* Remove check for empty result which is not needed

* Add test for all bitcoin request errors

* Rename bitcoin connection error exception

* Remove print statments from bitcoin client

* Got 100% coverage for bitcoin client

* Add todos to assert mocks called with correct args

* Rename bitcoin core client class and module
2021-10-07 19:42:15 -07:00