bugfix
This commit is contained in:
parent
05e58b2203
commit
f305f21c85
26
test/test_get_price_infos.py
Normal file
26
test/test_get_price_infos.py
Normal file
@ -0,0 +1,26 @@
|
||||
|
||||
from testenv import runtest
|
||||
from appPublic.dictObject import DictObject
|
||||
from platformbiz.pricing import get_price_infos
|
||||
|
||||
async def test(sor):
|
||||
# prodid = 'a--akNeu1Ia-NOZAJAadf'
|
||||
prodid = '1wleQ7o-RkrSbR-n368bO'
|
||||
buyerid = 'yyoJwfBDsRiwN8-WFl2q1'
|
||||
sellerid = '0'
|
||||
spec_config = [
|
||||
DictObject(**{
|
||||
"spec_name":"input_tokens",
|
||||
"count":12832
|
||||
}),
|
||||
DictObject(**{
|
||||
"spec_name":"output_tokens",
|
||||
"count":786323
|
||||
})
|
||||
]
|
||||
d = await get_price_infos(sor, sellerid, buyerid, prodid, spec_config)
|
||||
print(f'{d=}')
|
||||
|
||||
if __name__ == '__main__':
|
||||
runtest(test)
|
||||
|
12
test/test_open_agree_account.py
Normal file
12
test/test_open_agree_account.py
Normal file
@ -0,0 +1,12 @@
|
||||
from testenv import runtest
|
||||
from appPublic.dictObject import DictObject
|
||||
from platformbiz.product import open_agree_account
|
||||
|
||||
async def test(sor):
|
||||
orgid = 'ac4HnQ0txGqmbAFWpI3wp'
|
||||
agreeid = 'NUvV1sP9TtAdnlxCISzjo'
|
||||
await open_agree_account(sor, orgid, '0')
|
||||
|
||||
if __name__ == '__main__':
|
||||
runtest(test)
|
||||
|
12
test/test_prodclone.py
Normal file
12
test/test_prodclone.py
Normal file
@ -0,0 +1,12 @@
|
||||
from testenv import runtest
|
||||
from appPublic.dictObject import DictObject
|
||||
from platformbiz.product import agree_products_clone
|
||||
|
||||
async def test(sor):
|
||||
orgid = 'ac4HnQ0txGqmbAFWpI3wp'
|
||||
agreeid = 'NUvV1sP9TtAdnlxCISzjo'
|
||||
await agree_products_clone(sor, orgid, agreeid)
|
||||
|
||||
if __name__ == '__main__':
|
||||
runtest(test)
|
||||
|
Loading…
Reference in New Issue
Block a user