[test] #213: modify patched_get_source()
* modify values to facilitate test writing * rename `amount` variable to `balance` * create test_constants file to prevent circular dependencies * modify relevant files : import mock_ud_value from patched.test_constants instead of patched.money * patched_get_sources() now has a `counter` attribute, and can return different values if called twice * can mock the result of an intermediary transaction. * mod test_get_list_input_for_transaction() * to reset the patched_get_sources counter. * to make values match new patch behavior * to comment what is tested
parent
5031b5e9
No related branches found
No related tags found
Showing
- tests/patched/money.py 68 additions, 34 deletionstests/patched/money.py
- tests/patched/test_constants.py 3 additions, 0 deletionstests/patched/test_constants.py
- tests/test_tui.py 1 addition, 1 deletiontests/test_tui.py
- tests/test_tx.py 2 additions, 1 deletiontests/test_tx.py
- tests/test_unit_tx.py 33 additions, 9 deletionstests/test_unit_tx.py
tests/patched/test_constants.py
0 → 100644
Please register or sign in to comment