mirror of
https://git.oceanpay.cc/danial/kami_apple_exchage.git
synced 2025-12-19 06:17:44 +00:00
refactor(backend): 更新配置和代码以符合新需求 - 修改 .env 文件中的 APP_NAME 和 DATABASE_URL 配置。 - 在 orders.py 中更新导入和响应模型,移除不必要的字段并更新礼品卡处理逻辑。 - 在 arq_health.py、arq_worker.py、celery_app.py、config_arq.py、playwright_manager.py、state_manager.py、task_scheduler.py、worker_init.py 等文件中进行格式化和注释清理。 - 更新 models/orders.py 以确保礼品卡始终返回列表。 - 在 gift_card_service.py 中添加更新礼品卡信息成功的方法。 - 在 health_service.py 中进行格式化。 - 在 order_business_service.py 中简化 update_order_status 方法的定义。 - 在 playwright_service.py 中更新礼品卡处理逻辑和日志记录。 - 在 task_service.py 中更新礼品卡处理逻辑和日志记录。 - 在 user_data_service.py 中更新任务函数
9 lines
302 B
Python
9 lines
302 B
Python
from unittest import IsolatedAsyncioTestCase
|
|
|
|
from app.services.playwright_service import AppleOrderProcessor
|
|
|
|
|
|
class TestAppleOrderProcessor(IsolatedAsyncioTestCase):
|
|
async def test_process_order(self):
|
|
await AppleOrderProcessor("这是一个任务", "这是一个订单").process_order()
|