Zo doen wijdat in oost

This commit is contained in:
2026-10-16 07:20:44 +02:00
parent 25d9cb1c7d
commit 6f80a820da
229 changed files with 23894 additions and 74 deletions
+15
View File
@@ -0,0 +1,15 @@
# retoor <retoor@molodetz.nl>
from devplacepy.services.sync.spec import SPEC
def test_spec_is_public_and_matches_code(client):
response = client.get("/sync/spec.json")
assert response.status_code == 200
body = response.json()
assert body["kinds"] == list(SPEC.kinds)
assert body["statuses"] == list(SPEC.statuses)
assert body["limits"]["max_batch_records"] == SPEC.limits.max_batch_records
assert set(body["records"]) == set(SPEC.kinds)
assert "username" in body["records"]["users"]["properties"]
assert "stars" not in body["records"]["posts"]["properties"]