基于 main 接入各厂商直推服务端 (#118)
改动:新增厂商推送配置、设备 push_vendor/push_token 字段、device push-test 接口、心跳超时厂商直推发送逻辑和对应测试。 验证:python -m pytest tests/test_device_push.py tests/test_auth.py tests/test_health.py 通过。 --------- Co-authored-by: guke <guke@wonderable.ai> Co-authored-by: 左辰勇 <exinglang@gmail.com> Co-authored-by: lowmaster-chen <1119780489@qq.com> Reviewed-on: #118 Co-authored-by: Ghost <> Co-committed-by: Ghost <>
This commit was merged in pull request #118.
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
@echo off
|
||||
REM Push test #4 withdraw_failed (1 notification per run, random amount + reason).
|
||||
REM Works from ANY directory (locates project root + venv python by itself):
|
||||
REM scripts\test_push_withdraw_failed.bat
|
||||
REM Extra args pass through, e.g.: test_push_withdraw_failed.bat --cents 350
|
||||
REM ASCII-only comments: cmd parses .bat in the console codepage (GBK), UTF-8
|
||||
REM Chinese here gets mangled into bogus commands.
|
||||
cd /d "%~dp0.."
|
||||
".venv\Scripts\python.exe" "scripts\test_push_withdraw_failed.py" %*
|
||||
Reference in New Issue
Block a user