generated from coulomb/repo-seed
feat: reuse hub-core base schemas
This commit is contained in:
@@ -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
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user