16 lines
355 B
Python
16 lines
355 B
Python
|
|
import sys, asyncio
|
||
|
|
sys.path.insert(0, '.')
|
||
|
|
from app.main import load_env, StockBot
|
||
|
|
load_env()
|
||
|
|
|
||
|
|
async def test():
|
||
|
|
bot = StockBot()
|
||
|
|
print("StockBot 생성 완료")
|
||
|
|
await bot.initialize()
|
||
|
|
print("initialize() 완료")
|
||
|
|
print("5초 슬립...")
|
||
|
|
await asyncio.sleep(5)
|
||
|
|
print("5초 완료 - 정상 실행 중")
|
||
|
|
|
||
|
|
asyncio.run(test())
|