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
    • 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. Dec 09, 2020
  3. Sep 08, 2020
  4. Jun 05, 2020
  5. Jun 01, 2020
  6. Apr 07, 2020
    • matograine's avatar
      [feat] #111: modification of transaction_amount() function · 65211508
      matograine authored
      * transaction_amount() now returns the amounts list.
      
      * modify tests in tests_tx.py for transaction_amount to match new behavior
      * create unit tests in tests_unit_tx.py
      65211508
    • matograine's avatar
      [mod] #111: create MINIMAL_TX_AMOUNT, CENT_MULT_TO_UNIT constants · 303e4f2c
      matograine authored
      * both constants imported to tx.py
      * MINIMAL_TX_AMOUNT used in --amount click option
      * import silkaj.money and change related functions calls
      
      * introduce one test case for send_transaction()
      303e4f2c
    • matograine's avatar
      [feat] #111: Send multiple outputs: change click options: · bb34cbbb
      matograine authored
      * Breaking change: Rename `--output` option to `--recipient`
      * Add extra small options to ease passing multiple amounts and recipients:
        * `-a/--amount`
        * `-d/--amountUD`
        * `-r/--recipient`
      * Add possibility to pass multiple options:
        * Breaking change: recipients public keys are no longer `:` separated: `-r A -r B`
      * Store the options in variables names in plural for preciseness
      * Fix: Handle the case when no option specifying the amount is passed
      * Restrict `--allSources` option to a single recipient, case not handle for now
      * Extend tests with two upper checks
      * Improve help
      bb34cbbb
  7. Sep 08, 2019
Loading