release: nexus btpanel session fix and app-v2

This commit is contained in:
Codex Release Bot
2026-07-08 22:31:31 +08:00
commit 1933f0af6e
2457 changed files with 350105 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
"""Client-supplied push batch_id for WebSocket progress before POST."""
import pytest
from server.api.schemas import SyncFiles
def test_sync_files_accepts_client_batch_id():
bid = "abc123def456"
payload = SyncFiles(
server_ids=[1],
source_path="/tmp/nexus_upload_test",
batch_id=bid,
)
assert payload.batch_id == bid
def test_sync_files_rejects_invalid_batch_id():
with pytest.raises(ValueError):
SyncFiles(
server_ids=[1],
source_path="/tmp/nexus_upload_test",
batch_id="not-hex-id",
)