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

Commit d4f9eb0

Browse files
committed
Fix fulfill qa test
1 parent 39b1230 commit d4f9eb0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

qa/fulfill_direct_online.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def run_test(self):
3838
# post listing to alice
3939
with open('testdata/'+ self.vendor_version +'/listing.json') as listing_file:
4040
listing_json = json.load(listing_file, object_pairs_hook=OrderedDict)
41-
if self.vendor_version == 4:
41+
if self.vendor_version == "v4":
4242
listing_json["metadata"]["priceCurrency"] = "t" + self.cointype
4343
else:
4444
listing_json["item"]["priceCurrency"]["code"] = "t" + self.cointype
@@ -110,7 +110,7 @@ def run_test(self):
110110
"feeLevel": "NORMAL",
111111
"requireAssociateOrder": False
112112
}
113-
if self.buyer_version == 4:
113+
if self.buyer_version == "v4":
114114
spend["amount"] = payment_amount
115115
spend["wallet"] = "T" + self.cointype
116116

@@ -144,7 +144,7 @@ def run_test(self):
144144
raise TestFailure("FulfillDirectOnlineTest - FAIL: Alice failed to detect payment")
145145
if resp["funded"] == False:
146146
raise TestFailure("FulfillDirectOnlineTest - FAIL: Alice incorrectly saved as unfunded")
147-
147+
148148
# alice send order fulfillment
149149
with open('testdata/'+ self.vendor_version +'/fulfillment.json') as fulfillment_file:
150150
fulfillment_json = json.load(fulfillment_file, object_pairs_hook=OrderedDict)

0 commit comments

Comments
 (0)