Sergi Delgado Segura
e5ab943f8c
Adds conftest and defines session fixtures
2019-10-14 12:59:22 +01:00
Sergi Delgado Segura
6baa059431
Adds additional unit tests to tools
2019-10-11 20:54:31 +01:00
Sergi Delgado Segura
98c27f6013
Adds basic unit tests for the Carrier
...
Further testing is required for this one.
2019-10-11 19:51:50 +01:00
Salvatore Ingala
9f25ef8603
Fixes from PR review
2019-10-10 18:22:33 +07:00
Salvatore Ingala
831545ef2c
Added simple tests for check_txid_format
2019-10-10 09:59:12 +07:00
Sergi Delgado Segura
db635ef688
Add missing comment
2019-10-09 19:00:08 +01:00
Sergi Delgado Segura
8b62ff9e56
Update some comments/todos/discuss
2019-10-09 17:38:15 +01:00
Sergi Delgado Segura
b69ffdc0aa
Adds some BlockProcessor unit tests.
...
The three last methods are missing, since they seem not to belong there (check #36 )
2019-10-09 17:34:32 +01:00
Sergi Delgado Segura
e0d0818f6b
Removes unused code
2019-10-09 15:32:56 +01:00
Sergi Delgado Segura
ab72c71039
Adds appointment unit test
2019-10-09 15:19:33 +01:00
Sergi Delgado Segura
f59c621cc0
Defines bitcoind fixture session-wise
2019-10-09 14:05:15 +01:00
Sergi Delgado Segura
e7530a53dc
Fixes unconsistent test
...
test_get_all_appointments_responder was failing unconsistently. It was due to how the api fixture was set up.
Fix:
- Sets up bitcoind and api fixtures to run session-wise (so they are not re-initialized for every test
- Updates tests accordingly (e.g. reduces the number of MULTIPLE_REQUESTS so it does not cap)
- Keeps track of all sent appointments so the test_request functionds don't need to create additional ones
2019-10-09 14:01:43 +01:00
Sergi Delgado Segura
fa5f587134
Updates tests to be pytests friedly
...
pytests already runs all the test_ functions, so there's no need to call them
2019-10-08 18:57:29 +01:00
Sergi Delgado Segura
9a18f759f9
Adds run_bitcoind fixture
2019-10-08 18:56:45 +01:00
Sergi Delgado Segura
e81ccd39a1
Adds API unit tests and modifies bitcoin_sim to be fixture compatible
...
- Adds unit tests for API
- Updates API to let BlockProcessor deal with block block related JSON-RPC
- Fixes BlockProcessor get_potential_matches return
- Makes bitcoin_sim runnable via function (instead of a main runnable script) to work with pytests fixture
- <3 Fixture
2019-10-08 18:55:27 +01:00
Sergi Delgado Segura
ab1ad33e32
Adds Blob unittests and Blob sanity checks
2019-10-07 17:22:19 +01:00
Sergi Delgado Segura
8403f871ca
Adds EncryptedBlob unittests
2019-10-07 16:56:55 +01:00
Sergi Delgado Segura
4be506412e
Adds Inspector unittests. Fixes some related bugs.
2019-10-07 15:19:34 +01:00
Sergi Delgado Segura
067efcca73
Clean unused imports and more cleanup
2019-10-07 11:58:28 +01:00
Sergi Delgado Segura
5ae210d893
Updates os.urandom to python3
...
All string generated with urandom(x) were using binascii + os.urandom + encode. In python3 os.urandom has a hex method.
2019-10-07 11:39:10 +01:00
Sergi Delgado Segura
beac88a2c5
Refactors test structure
2019-10-04 17:29:13 +01:00