increase tests trade range

This commit is contained in:
jerryfletcher21
2025-05-17 15:43:39 +02:00
parent 7e1d69fc49
commit 564073430a
2 changed files with 7 additions and 7 deletions

View File

@ -261,8 +261,8 @@ class TradeTest(BaseAPITestCase):
"type": 0,
"currency": 1,
"has_range": True,
"min_amount": 21,
"max_amount": 101.7,
"min_amount": 84,
"max_amount": 201.7,
"payment_method": "Advcash Cash F2F",
"is_explicit": False,
"premium": 3.34,
@ -434,7 +434,7 @@ class TradeTest(BaseAPITestCase):
)
self.assertIsHash(data["maker_hash_id"])
self.assertEqual(data["maker_status"], "Active")
self.assertAlmostEqual(float(data["amount"]), 80)
self.assertAlmostEqual(float(data["amount"]), 100)
self.assertFalse(data["is_maker"])
self.assertFalse(data["is_buyer"])
self.assertTrue(data["is_seller"])
@ -474,7 +474,7 @@ class TradeTest(BaseAPITestCase):
self.assertResponse(trade.response)
self.assertEqual(data["status_message"], Order.Status(Order.Status.PUB).label)
self.assertAlmostEqual(float(data["amount"]), 80)
self.assertAlmostEqual(float(data["amount"]), 100)
# Cancel order to avoid leaving pending HTLCs after a successful test
trade.cancel_order()

View File

@ -19,8 +19,8 @@ maker_form_buy_with_range = {
"type": Order.Types.BUY,
"currency": 1,
"has_range": True,
"min_amount": 21,
"max_amount": 101.7,
"min_amount": 84,
"max_amount": 201.7,
"payment_method": "Advcash Cash F2F",
"is_explicit": False,
"premium": 3.34,
@ -47,7 +47,7 @@ class Trade:
self,
client,
maker_form=maker_form_buy_with_range,
take_amount=80,
take_amount=100,
maker_index=1,
taker_index=2,
third_index=3,