init: documentation and prototypes

This commit is contained in:
2025-12-01 22:01:19 +01:00
parent e936fb41fa
commit 45d60fc1a9
51 changed files with 2476 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
import pytest
from httpx import AsyncClient
from main import app # Adjust import
@pytest.mark.asyncio
async def test_upload_document():
async with AsyncClient(app=app, base_url="http://test") as ac:
response = await ac.post("/documents", json={
"metadata": {"authority_id": "test", "reference_number": "123", "doc_type": "NOTICE", "issued_at": "2025-12-01T00:00:00Z"},
"encrypted_payload": "dummy_base64"
})
assert response.status_code == 201