mirror of
https://github.com/basicswap/basicswap.git
synced 2025-11-05 10:28:10 +01:00
tests: Fix LTC wallet creation.
This commit is contained in:
@@ -662,9 +662,9 @@ class Test(BaseTest):
|
|||||||
offer_id = swap_clients[0].postOffer(
|
offer_id = swap_clients[0].postOffer(
|
||||||
Coins.BTC,
|
Coins.BTC,
|
||||||
Coins.LTC,
|
Coins.LTC,
|
||||||
0.001 * COIN,
|
0.01 * COIN,
|
||||||
1.0 * COIN,
|
1.0 * COIN,
|
||||||
0.001 * COIN,
|
0.01 * COIN,
|
||||||
SwapTypes.SELLER_FIRST,
|
SwapTypes.SELLER_FIRST,
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -692,17 +692,8 @@ class Test(BaseTest):
|
|||||||
|
|
||||||
def test_08_part_ltc_buyer_first(self):
|
def test_08_part_ltc_buyer_first(self):
|
||||||
logging.info("---------- Test PART to LTC, buyer first")
|
logging.info("---------- Test PART to LTC, buyer first")
|
||||||
swap_clients = self.swap_clients
|
|
||||||
|
|
||||||
swap_clients[0].postOffer(
|
|
||||||
Coins.PART,
|
|
||||||
Coins.LTC,
|
|
||||||
100 * COIN,
|
|
||||||
0.1 * COIN,
|
|
||||||
100 * COIN,
|
|
||||||
SwapTypes.BUYER_FIRST,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
# SwapTypes.BUYER_FIRST
|
||||||
logging.warning("TODO")
|
logging.warning("TODO")
|
||||||
|
|
||||||
def test_09_part_ltc_auto_accept(self):
|
def test_09_part_ltc_auto_accept(self):
|
||||||
|
|||||||
@@ -561,7 +561,7 @@ class BaseTest(unittest.TestCase):
|
|||||||
base_p2p_port=LTC_BASE_PORT,
|
base_p2p_port=LTC_BASE_PORT,
|
||||||
base_rpc_port=LTC_BASE_RPC_PORT,
|
base_rpc_port=LTC_BASE_RPC_PORT,
|
||||||
)
|
)
|
||||||
if os.path.exists(
|
if not os.path.exists(
|
||||||
os.path.join(cfg.LITECOIN_BINDIR, ltc_wallet_bin)
|
os.path.join(cfg.LITECOIN_BINDIR, ltc_wallet_bin)
|
||||||
):
|
):
|
||||||
logging.warning(f"{ltc_wallet_bin} not found.")
|
logging.warning(f"{ltc_wallet_bin} not found.")
|
||||||
|
|||||||
Reference in New Issue
Block a user