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

Commit 52703c4

Browse files
committed
Check for proper vendor and buyer versions
1 parent e85ee41 commit 52703c4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

qa/market_price_modifier.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ def run_test(self):
4040
# post listings to vendor
4141
with open('testdata/'+ self.vendor_version +'/listing_crypto.json') as listing_file:
4242
listing_json = json.load(listing_file, object_pairs_hook=OrderedDict)
43-
if self.vendor_version == 5:
43+
if self.vendor_version == "v5":
4444
listing_json["metadata"]["coinType"] = "TBCH"
4545
listing_json["metadata"]["coinDivisibility"] = 8
4646
listing_json["metadata"]["acceptedCurrencies"] = ["T" + self.cointype]
4747
listing_json_with_modifier = deepcopy(listing_json)
48-
if self.vendor_version == 4:
48+
if self.vendor_version == "v4":
4949
listing_json_with_modifier["metadata"]["priceModifier"] = self.price_modifier
5050
else:
5151
listing_json_with_modifier["item"]["priceModifier"] = self.price_modifier
@@ -136,7 +136,7 @@ def run_test(self):
136136
raise TestFailure("MarketPriceModifierTest - FAIL: Purchase POST failed. Reason: %s", resp["reason"])
137137
resp = json.loads(r.text)
138138
payment_address_with_modifier = resp["paymentAddress"]
139-
if self.buyer_version == 4:
139+
if self.buyer_version == "v4":
140140
payment_address_with_modifier = resp["amount"]
141141
else:
142142
payment_amount_with_modifier = int(resp["amount"]["amount"])

0 commit comments

Comments
 (0)