mirror of
https://github.com/aljazceru/python-teos.git
synced 2025-12-17 22:24:23 +01:00
Adds some missing tests
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
from pisa import logging
|
||||
from pisa.tools import check_txid_format
|
||||
from pisa.tools import can_connect_to_bitcoind, in_correct_network
|
||||
from pisa.tools import can_connect_to_bitcoind, in_correct_network, bitcoin_cli
|
||||
|
||||
logging.getLogger().disabled = True
|
||||
|
||||
@@ -22,6 +22,15 @@ def test_can_connect_to_bitcoind():
|
||||
# assert can_connect_to_bitcoind() is False
|
||||
|
||||
|
||||
def test_bitcoin_cli():
|
||||
try:
|
||||
bitcoin_cli().help()
|
||||
assert True
|
||||
|
||||
except Exception:
|
||||
assert False
|
||||
|
||||
|
||||
def test_check_txid_format():
|
||||
assert(check_txid_format(None) is False)
|
||||
assert(check_txid_format("") is False)
|
||||
|
||||
Reference in New Issue
Block a user