Introduce BitcoinTestFramework.get_node_args. #6099

pull domob1812 wants to merge 1 commits into bitcoin:master from domob1812:extra-args changing 16 files +192 −59
  1. domob1812 commented at 10:22 AM on May 3, 2015: contributor

    Use a new function in BitcoinTestFramework (get_node_args) to specify which options each node should have.

    I guess this is a matter of taste, but in my opinion this makes the code cleaner (also for future changes to the options). It would even allow to specify "general" options that are set differently for the four nodes (e. g., two could always have -txindex and two not, so that both behaviours can be tested).

  2. Introduce BitcoinTestFramework.get_node_args.
    Use a new function in BitcoinTestFramework (get_node_args) to specify
    which options each node should have.
    5168a2a08e
  3. jonasschnelli commented at 12:35 PM on May 3, 2015: contributor

    I can't see the benefit of this PR. The way of settings args (in current master) is appropriate IMO. Remind also that this PR adds ~150 lines of code.

    Therefore i tend to NACK.

  4. domob1812 commented at 6:08 AM on May 4, 2015: contributor

    I think that it makes the argument clearer. Also, it could be used to get completely rid of the setup_network functions in some of the tests if taken a bit further. I wanted to submit this first to get initial feedback before spending more time, though. But yes, I realise that it is probably a matter of taste.

    Note that at least some of the added lines of code are probably due to more prevalent line breaks in my coding style than in some of the replaced code. Also more savings will come when removing some setup_network functions becomes possible.

  5. laanwj added the label Tests on May 4, 2015
  6. laanwj commented at 7:09 AM on May 4, 2015: member

    I like test cases to be nitty-gritty and explicit. This makes them easier to understand, or at least, makes it easier to understand what actually happens. Deeper abstractions make it harder to troubleshoot, or for 'outsiders' to change the tests when necessary for code changes.

    So I also tend towards NACK here. Currently we specify the exact arguments that are fed into bitcoind in every test. This would bury it in more Python syntactic sugar.

  7. laanwj closed this on May 11, 2015

  8. domob1812 deleted the branch on May 11, 2015
  9. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-21 18:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me