Commit Graph

17 Commits

Author SHA1 Message Date
Sergi Delgado Segura
c679d59451 Merge branch '59-uncovered-tests' 2019-12-04 14:41:24 +01:00
Turtle
98b3dcae7b Test that server validates signature properly 2019-11-28 09:04:43 -05:00
Sergi Delgado Segura
f33d2d61ac Moves start api to test_api since it was the only place where it's used 2019-11-14 17:38:19 +00:00
Sergi Delgado Segura
ca3f6ee1b1 Fixes memory leak bug regarding test db 2019-11-14 15:04:55 +00:00
Sergi Delgado Segura
8f7505c17a Improves generate_dummy_appointment 2019-11-07 16:56:15 +00:00
Sergi Delgado Segura
20f296c9d4 Reformats code to match code guidelines 2019-11-07 15:47:35 +00:00
Sergi Delgado Segura
8174ec61af Generalizes get_dummy_appointment (there were multiple instances of it in different tests)
Also refactors some unused imports and modifies the watcher tests to use .serialize instead of to_json
2019-11-07 15:08:06 +00:00
Sergi Delgado Segura
a6b1f96aaf Adds dummy appointment and job methods to conftest and includes triggered param to test_api 2019-11-05 19:11:58 +00:00
Sergi Delgado Segura
a385fa16a9 Adds DBManager unit tests 2019-10-29 14:51:59 -07:00
Sergi Delgado Segura
f61474216c Fixes and tests updates
Updates tests so they run with the db_manager and fixes some bugs introduced in d7d42c9.
2019-10-28 14:49:40 -07:00
Sergi Delgado Segura
52f52f57f8 Apply requested changes
- Adds a PRG based on a hardcoded seed to make the tests reproducible (get_random_value_hex)
- Updates all the tests replacing urandom for get_random_value_hex
- Properly places misplaced bitcoin_cli in bitcoin_sim_tests
- Typos
2019-10-23 12:40:25 +01:00
Sergi Delgado Segura
94156a67cc Adds generate_blocks 2019-10-21 18:12:05 +01:00
Sergi Delgado Segura
6735aac094 Update tests to use bitcoind_sim event-wise
Also clean son unused imports
2019-10-17 19:08:34 +01:00
Sergi Delgado Segura
95759793ba Fixes bitcoin_cli
bitcoin_cli as a global variable in the main __init__.py was creating issues related to http.client.CannotSendRequest: Request-sent and connection re-usage. Define a new connection per request.
2019-10-17 17:17:52 +01:00
Sergi Delgado Segura
5f87705d26 Dissables can_connect_to_bitcoind with a non-running backend
Until a better way of handling the stop of bitcoind the test is dissabled, it created issues with other tests.
2019-10-14 16:57:58 +01:00
Sergi Delgado Segura
d43ab76220 Updates conftest fixtures so they do not autorun
The modules that need to run either bitcoind or the api do now reference to the fixture in the first test that needs it. Since the fixtures are definexd session-wise the rest of the modules will have access to them from that point on.
2019-10-14 13:19:54 +01:00
Sergi Delgado Segura
e5ab943f8c Adds conftest and defines session fixtures 2019-10-14 12:59:22 +01:00