accounting/test/run_test.py
2024-09-21 14:07:27 +08:00

13 lines
260 B
Python

import os
import asyncio
from sqlor.dbpools import DBPools
from appPublic.jsonConfig import getConfig
def run(test_coro):
os.chdir('/Users/ymq/py/sage')
conf = getConfig()
DBPools(conf.databases)
asyncio.get_event_loop().run_until_complete(test_coro())