[qa] Remove hardcoded "4 nodes" from test_framework #8056

pull MarcoFalke wants to merge 2 commits into bitcoin:master from MarcoFalke:Mf1605-qaFlex changing 58 files +291 −138
  1. MarcoFalke commented at 9:18 AM on May 15, 2016: member

    This is the first pull of two to remove the hardcoded 4 nodes from test_framework.py. This includes several benefits, which come for free:

    • Each derived test can now set the number of nodes in __init__() and have the base class deal with setting up the network. This makes the test easier to read and easier for newcomers to get started writing tests, hopefully.
    • Also, __init__() is used to specify if the chain should be clean (default=False), instead of calling the util function directly.
  2. MarcoFalke added the label Tests on May 15, 2016
  3. MarcoFalke force-pushed on May 15, 2016
  4. MarcoFalke force-pushed on May 15, 2016
  5. MarcoFalke added the label Refactoring on May 15, 2016
  6. [qa] Remove hardcoded "4 nodes" from test_framework fac9349798
  7. [qa] Reduce node count for some tests fad68f751a
  8. MarcoFalke force-pushed on May 15, 2016
  9. MarcoFalke commented at 11:16 AM on May 15, 2016: member

    Added a commit to reduce the node count for some tests.

  10. btcdrak commented at 12:53 PM on May 15, 2016: contributor

    utACK fad68f7

  11. in qa/rpc-tests/multi_rpc.py:None in fad68f751a
       7 | @@ -8,25 +8,31 @@
       8 |  #
       9 |  
      10 |  from test_framework.test_framework import BitcoinTestFramework
      11 | -from test_framework.util import *
      12 | +from test_framework.util import str_to_b64str, assert_equal
    


    jtimon commented at 1:04 PM on May 20, 2016:

    Nice, explicit is better than implicit.

  12. jtimon commented at 1:07 PM on May 20, 2016: contributor

    utACK fad68f7

  13. MarcoFalke merged this on May 20, 2016
  14. MarcoFalke closed this on May 20, 2016

  15. MarcoFalke referenced this in commit 8844ef15de on May 20, 2016
  16. MarcoFalke deleted the branch on May 20, 2016
  17. codablock referenced this in commit 5f4eb1b8e4 on Sep 16, 2017
  18. codablock referenced this in commit 6604d3d6e5 on Sep 19, 2017
  19. codablock referenced this in commit bcecdcd8e9 on Dec 21, 2017
  20. zkbot referenced this in commit 025bd44543 on Nov 21, 2020
  21. zkbot referenced this in commit 7a0a268054 on Dec 2, 2020
  22. zkbot referenced this in commit c8896f9907 on Dec 2, 2020
  23. DrahtBot 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-14 18:15 UTC

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