feat条件单页本页划入交易户,避免跳转丢失新建表单。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -19,6 +19,7 @@ class TestCondCandidatesFunds(unittest.TestCase):
|
||||
"cond_order_locked": False,
|
||||
"instance": {"mode": "live"},
|
||||
"funds": {"trading_usdt": 123.456, "funding_usdt": 50.0},
|
||||
"transfer_blocked": False,
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -31,6 +32,8 @@ class TestCondCandidatesFunds(unittest.TestCase):
|
||||
"cond_order_locked": False,
|
||||
"instance": {"mode": "sim"},
|
||||
"funds": {},
|
||||
"transfer_blocked": True,
|
||||
"transfer_block_msg": "期权持仓中禁止划转",
|
||||
},
|
||||
},
|
||||
]
|
||||
@@ -39,8 +42,10 @@ class TestCondCandidatesFunds(unittest.TestCase):
|
||||
self.assertTrue(out[0]["selectable"])
|
||||
self.assertAlmostEqual(out[0]["trading_usdt"], 123.456, places=3)
|
||||
self.assertAlmostEqual(out[0]["funding_usdt"], 50.0, places=3)
|
||||
self.assertFalse(out[0]["transfer_blocked"])
|
||||
self.assertFalse(out[1]["selectable"])
|
||||
self.assertIsNone(out[1]["trading_usdt"])
|
||||
self.assertTrue(out[1]["transfer_blocked"])
|
||||
|
||||
def test_open_url_tab_appended(self):
|
||||
from lib.sso_lib import build_embed_open_url
|
||||
|
||||
Reference in New Issue
Block a user