feat: reuse hub-core base schemas
This commit is contained in:
parent
3b48ce52a3
commit
8428a02f6c
5 changed files with 73 additions and 74 deletions
|
|
@ -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
|
||||
# ---------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue