diff --git a/accounting/test_accounting.py b/accounting/test_accounting.py index 836fedf..b0b9834 100644 --- a/accounting/test_accounting.py +++ b/accounting/test_accounting.py @@ -7,6 +7,9 @@ from appPublic.timeUtils import curDateString, timestampstr from accounting.consume import consume_accounting from ahserver.serverenv import ServerEnv +def get_module_dbname(m): + retrun 'sage' + async def get_orgid_by_username(sor, username): recs = await sor.R('users', {'username': username}) if len(recs): @@ -57,5 +60,7 @@ if __name__ == '__main__': } } DBPools(databases) + env = ServerEnv() + env.get_module_dbname = get_module_dbname asyncio.run(main())