diff --git a/accounting/test_accounting.py b/accounting/test_accounting.py index 90a9e11..2b71b60 100644 --- a/accounting/test_accounting.py +++ b/accounting/test_accounting.py @@ -28,9 +28,9 @@ async def accounting(username): d.productid = 'test_product' d.transamt = 123.432 d.variable = { - "交易金额": 123.432, - "交易手续费": 0 - } + "交易金额": 123.432, + "交易手续费": 0 + } ais.append(d) orderid = 'test_orderid' await consume_accounting(sor, orderid, ais) @@ -43,5 +43,18 @@ async def main(): await accounting(username) if __name__ == '__main__': + databases = { + "sage":{ + "driver":"mysql", + "kwargs":{ + "user":"test", + "db":"sage", + "password":"SS+C1MDMJrslBwGzYIv3nQ==", + "charset": "utf8mb4", + "host":"db" + } + } + } + DBPools(databases) asyncio.run(main())