Skip to content
Snippets Groups Projects
  1. Dec 10, 2020
    • matograine's avatar
      [test] #213: modify patched_get_source() · 78060fa5
      matograine authored
      * 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
      78060fa5
    • matograine's avatar
      [test] #213: move useful test patched functions · 5031b5e9
      matograine authored
      * Move patched functions from test_membership.py to relevant files
          * blockchain_tools.py
              * create mocked_block variable
              * make both patched_block and patched_head_block return mocked_block
          * auth.py
          * wot.py
      * modify a pubkey list in patched/wot.py
      * change calls in the tests
      * change pubkeys in patched/money.py to match new pubkey_list
      5031b5e9
    • matograine's avatar
    • matograine's avatar
      [test] #282: split patched.py · ab3ff0c6
      matograine authored
      * create patched directory
      * create files matching the silkaj modules
          * money.py
          * tools.py
          * wot.py
          * blockchain_tools.py
      * delete patched.py
      * change calls in the tests
      ab3ff0c6
  2. Oct 11, 2020
Loading