From 3ae5bffed697b926bea1bb79a63d1fe70d2667ef Mon Sep 17 00:00:00 2001 From: undeath Date: Sun, 9 Dec 2018 21:58:42 +0100 Subject: [PATCH] fix TestMakerClientProtocol failing with py3 (2) --- jmclient/test/test_client_protocol.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/jmclient/test/test_client_protocol.py b/jmclient/test/test_client_protocol.py index f22e0692f..045047fce 100644 --- a/jmclient/test/test_client_protocol.py +++ b/jmclient/test/test_client_protocol.py @@ -87,6 +87,7 @@ class DummyMaker(Maker): def __init__(self): self.aborted = False self.wallet = DummyWallet() + self.offerlist = self.create_my_orders() def try_to_create_my_orders(self): pass @@ -110,7 +111,14 @@ def import_new_addresses(self, addr_list): pass def create_my_orders(self): - return [] + return [{ + 'cjfee': '0', + 'maxsize': 100000000, + 'minsize': 75000, + 'oid': 0, + 'ordertype': 'swreloffer', + 'txfee': 0 + }] def oid_to_order(self, cjorder, oid, amount): # utxos, cj_addr, change_addr