This repository was archived by the owner on Mar 28, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -40,12 +40,12 @@ def run_test(self):
40
40
# post listings to vendor
41
41
with open ('testdata/' + self .vendor_version + '/listing_crypto.json' ) as listing_file :
42
42
listing_json = json .load (listing_file , object_pairs_hook = OrderedDict )
43
- if self .vendor_version == 5 :
43
+ if self .vendor_version == "v5" :
44
44
listing_json ["metadata" ]["coinType" ] = "TBCH"
45
45
listing_json ["metadata" ]["coinDivisibility" ] = 8
46
46
listing_json ["metadata" ]["acceptedCurrencies" ] = ["T" + self .cointype ]
47
47
listing_json_with_modifier = deepcopy (listing_json )
48
- if self .vendor_version == 4 :
48
+ if self .vendor_version == "v4" :
49
49
listing_json_with_modifier ["metadata" ]["priceModifier" ] = self .price_modifier
50
50
else :
51
51
listing_json_with_modifier ["item" ]["priceModifier" ] = self .price_modifier
@@ -136,7 +136,7 @@ def run_test(self):
136
136
raise TestFailure ("MarketPriceModifierTest - FAIL: Purchase POST failed. Reason: %s" , resp ["reason" ])
137
137
resp = json .loads (r .text )
138
138
payment_address_with_modifier = resp ["paymentAddress" ]
139
- if self .buyer_version == 4 :
139
+ if self .buyer_version == "v4" :
140
140
payment_address_with_modifier = resp ["amount" ]
141
141
else :
142
142
payment_amount_with_modifier = int (resp ["amount" ]["amount" ])
You can’t perform that action at this time.
0 commit comments