Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit c7f3a87

Browse files
committed
Fdaf
1 parent 13d28b1 commit c7f3a87

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

qa/purchase_crypto_listing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def run_test(self):
204204
resp = json.loads(r.text)
205205
if r.status_code != 200:
206206
raise TestFailure("PurchaseCryptoListingTest - FAIL: Inventory get endpoint failed")
207-
207+
208208
check_amt = "340000000000000000"
209209
if self.buyer_version == 4:
210210
check_amt = 340000000000000000

qa/purchase_direct_online.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ def run_test(self):
3838
with open('testdata/'+ self.vendor_version +'/listing.json') as listing_file:
3939
listing_json = json.load(listing_file, object_pairs_hook=OrderedDict)
4040
listing_json["metadata"]["acceptedCurrencies"] = ["t" + self.cointype]
41-
if self.vendor_version == 4:
42-
listing_json["metadata"]["priceCurrency"] = "t" + self.cointype
41+
if self.vendor_version == "v4":
42+
listing_json["metadata"]["pricingCurrency"] = "t" + self.cointype
4343
else:
4444
listing_json["item"]["priceCurrency"]["code"] = "t" + self.cointype
4545

qa/test_framework/test_framework.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,14 @@ def send_bitcoin_cmd(self, *args):
7171
def configure_node(self, n):
7272
dir_path = os.path.join(self.temp_dir, "openbazaar-go", str(n))
7373
args = []
74-
if n == 1 and self.v4vendor_binary is not None:
74+
75+
if n == 1 and self.v4vendor_binary:
7576
self.vendor_version = "v4"
7677
args = [self.v4vendor_binary, "init", "-d", dir_path, "--testnet"]
77-
elif n == 2 and self.v4buyer_binary is not None:
78+
elif n == 2 and self.v4buyer_binary:
7879
self.buyer_version = "v4"
7980
args = [self.v4buyer_binary, "init", "-d", dir_path, "--testnet"]
80-
elif n == 3 and self.v4moderator_binary is not None:
81+
elif n == 3 and self.v4moderator_binary:
8182
self.moderator_version = "v4"
8283
args = [self.v4moderator_binary, "init", "-d", dir_path, "--testnet"]
8384
else:

0 commit comments

Comments
 (0)