dash/test/functional/test_framework
Alexander Block 54198ce739
Backport bitcoin#15773: test: Add BitcoinTestFramework::sync_* methods (incomplete backport) (#3409)
* scripted-diff: Rename sync_blocks to send_blocks to avoid name collisions and confusion

-BEGIN VERIFY SCRIPT-
FILE_LIST=$(git grep -l 'def sync_blocks' ./test/functional/*.py)
sed -i -e 's/def sync_blocks/def send_blocks/g'   $FILE_LIST
sed -i -e 's/self.sync_blocks/self.send_blocks/g' $FILE_LIST
-END VERIFY SCRIPT-

* test: Pass at most one node group to sync_all

* test: Add BitcoinTestFramework::sync_* methods

* Move bumping of mocktime into BitcoinTestFramework.sync_mempool

Instead of doing it in every place it's needed

* scripted-diff: use self.sync_* methods

-BEGIN VERIFY SCRIPT-
sed -i -e 's/sync_blocks(self.nodes)/self.sync_blocks()/g'     $(git grep -l 'sync_blocks(self.nodes)'   ./test/functional/*.py)
sed -i -e 's/sync_mempools(self.nodes)/self.sync_mempools()/g' $(git grep -l 'sync_mempools(self.nodes)' ./test/functional/*.py)

sed -i -e 's/  sync_blocks(/  self.sync_blocks(/g'     $(git grep -l sync_blocks   ./test/functional/*.py)
sed -i -e 's/  sync_mempools(/  self.sync_mempools(/g' $(git grep -l sync_mempools ./test/functional/*.py)
-END VERIFY SCRIPT-

* Pass nodes into bump_mocktime

Co-authored-by: MarcoFalke <falke.marco@gmail.com>
2020-04-14 13:00:16 +03:00
..
__init__.py Merge bitcoin#9956: Reorganise qa directory (#2912) 2019-05-19 23:20:34 +03:00
authproxy.py Merge #11513: [trivial] [tests] A few Python3 tidy ups 2020-02-29 11:51:03 -06:00
bignum.py Merge #10781: Python cleanups 2020-01-02 22:01:29 -06:00
blocktools.py Merge bitcoin#9956: Reorganise qa directory (#2912) 2019-05-19 23:20:34 +03:00
coverage.py Merge #11513: [trivial] [tests] A few Python3 tidy ups 2020-02-29 11:51:03 -06:00
key.py Merge #11513: [trivial] [tests] A few Python3 tidy ups 2020-02-29 11:51:03 -06:00
messages.py Merge #11867: Improve node network test 2020-04-05 11:07:23 -05:00
mininode.py continued 2020-04-08 11:46:27 -05:00
netutil.py Merge #10781: Python cleanups 2020-01-02 22:01:29 -06:00
script.py Merge #12475: qa: Fix python TypeError in script.py 2020-03-24 11:43:10 -05:00
siphash.py Merge bitcoin#9956: Reorganise qa directory (#2912) 2019-05-19 23:20:34 +03:00
socks5.py Merge #11513: [trivial] [tests] A few Python3 tidy ups 2020-02-29 11:51:03 -06:00
test_framework.py Backport bitcoin#15773: test: Add BitcoinTestFramework::sync_* methods (incomplete backport) (#3409) 2020-04-14 13:00:16 +03:00
test_node.py Merge #12089: qa: Make TestNodeCLI command optional in send_cli 2020-04-08 11:46:27 -05:00
util.py Add wait_func to sync_mempool 2020-04-08 22:13:54 +02:00