Commit graph

25 commits

Author SHA1 Message Date
Kristaps Kaupe
935a734b93
Fix tests for Core v26 when user has no access to ~/.bitcoin/settings.json 2023-12-30 12:49:38 +02:00
Kristaps Kaupe
d234731022
Add -allowignoredconf=1 for Bitcoin Core v26+ 2023-12-17 20:23:35 +02:00
PulpCattel
c4d9b9264a
tests: make setup fixtures optional.
This allows running tests that do not require, e.g., bitcoind, without having to run these setup fixtures at all.

Signed-off-by: PulpCattel <PulpCattel@users.noreply.github.com>
2023-01-15 08:38:52 +00:00
PulpCattel
a9deacc010
Refactor conftest.py:
* Uses shlex.split() to avoid unnecessary handling of command lists
* Removes unnecessary globals
* PEP8 fixes
* Uses `yield` instead of `addfinalizer` teardown
* Add docstrings
* Clean up functions
2023-01-14 17:38:56 +00:00
Kristaps Kaupe
7b4c42a098
Remove dead code 2022-09-28 22:04:07 +03:00
Kristaps Kaupe
8d2a6647da
Fix for recent Bitcoin Core versions and add type hints 2022-09-25 02:22:24 +03:00
Kristaps Kaupe
44b61a1162
Always use legacy Core wallet in tests 2022-04-02 21:02:02 +03:00
Kristaps Kaupe
d9d594c21d
Allow bitcoin_path both with and without trailing slash 2021-06-30 20:06:28 +03:00
Kristaps Kaupe
e7027ab20b
Change IRC ports for local tests 2021-05-26 14:00:41 +03:00
Kristaps Kaupe
512fab735a
Fix remaining flake8 errors 2021-04-17 20:49:26 +03:00
Kristaps Kaupe
20b67e9bec
Wait for bitcoind to start instead of hardcoded sleep in tests. 2021-02-08 11:51:30 +02:00
Kristaps Kaupe
92c1b1a472
Fix tests for Bitcoin Core v0.21+
Co-authored-by: Adam Gibson <ekaggata@gmail.com>
2021-02-08 09:24:08 +02:00
Kristaps Kaupe
192c07a704
Abort early and output error if first bitcoin-cli call fails 2020-12-10 02:44:58 +02:00
jules23
536bef569a [test] Parse getnewaddress response properly 2020-06-25 16:15:30 -04:00
Adam Gibson
71a37c02f6
Remove nonstandard scripts from test suite
Fixes #477. Removes nonstandard script support
from 0.19+ bitcoind configuration for regtest and
changes scripts in test_wallet and test_tx_creation
to make them standard.
2020-02-10 16:35:55 +00:00
Tim Akinbo
18d8f9668c simplified joinmarket dependencies installation
updated xenial and stretch dockerfiles since they bundle old versions of libsodium

refacatoring to make BlockchainInterface and BitcoinCoreNoHistoryInterface python2 compatible

add the -acceptnonstdtxn flag when invoking bitcoind for versions >= 0.19.0

refactor the use of nonlocal to make it compatible with python2

document the get_bitcoind_version method
2020-01-05 05:17:02 +00:00
AdamISZ
31eabde005
Upgrade testing framework to use generatetoaddress.
Prior to this commit, the regtest testing framework
used the bitcoin rpc command `generate` to mine coins
in preparation for tests, and to tick forward the
chain for confirmations. This rpc command is deprecated
and will be removed in 0.19. Hence this commit changes
the two usages of `generate` to `generatetoaddress` and
specifies a mining address created with `getnewaddress`.
2019-05-13 16:11:51 +02:00
James Hilliard
5a0d5fe72f Revert "Revert "Python 3 style conversion""
This reverts commit 2eb3a8737d.
2018-11-23 01:35:11 +08:00
AdamISZ
2eb3a8737d
Revert "Python 3 style conversion"
This reverts commit c08b69ba75.
2018-11-20 21:10:50 +01:00
James Hilliard
c08b69ba75 Python 3 style conversion 2018-11-20 03:56:43 +08:00
mecampbellsoup
428cc75675 Default regtest bitcoin conf to test/bitcoin.conf
Use relative paths when setting btcconf default filepath

Whitespace and newlines

Must specify return value in python

os.path.join preferred over str +

Also adding some print statements.
2017-09-26 15:53:08 -04:00
Adam Gibson
68d13d75f1
Modify jmclient tests for new protocol updates
Add segwit tests in main test dir
2017-07-22 21:07:17 +03:00
Adam Gibson
990e5d02f2
extra features for test running (ygrunner) 2017-07-20 14:50:50 +03:00
Adam Gibson
d710bf9d9e
Completed coverage of jmdaemon package. 2016-12-16 16:33:24 +02:00
Adam Gibson
0ea2dc5301
Completed coverage of jmbitcoin, jmbase, jmclient
Includes moving coverage and pytest files to root directory.
2016-12-10 19:20:05 +02:00
Renamed from jmclient/test/conftest.py (Browse further)