Skip to content
Snippets Groups Projects
Commit 78060fa5 authored by matograine's avatar matograine
Browse files

[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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment