feat: reuse hub-core base schemas

This commit is contained in:
2026-06-07 16:32:16 +02:00
parent 3b48ce52a3
commit 8428a02f6c
5 changed files with 73 additions and 74 deletions

View File

@@ -75,6 +75,23 @@ class TestDomains:
assert r.status_code == 409
# ---------------------------------------------------------------------------
# Repo tests
# ---------------------------------------------------------------------------
class TestRepos:
async def test_create_persists_host_paths(self, client):
await _create_domain(client)
r = await client.post("/repos/", json={
"domain_slug": "testdomain",
"slug": "hosted-repo",
"name": "Hosted Repo",
"host_paths": {"workstation": "/srv/hosted-repo"},
})
assert r.status_code == 201
assert r.json()["host_paths"] == {"workstation": "/srv/hosted-repo"}
# ---------------------------------------------------------------------------
# Topic tests
# ---------------------------------------------------------------------------