rename machine_flake back to clan_flake

This commit is contained in:
Jörg Thalheim
2023-09-14 17:04:04 +02:00
parent 2048ffccb0
commit 02f421546c
14 changed files with 54 additions and 56 deletions

View File

@@ -3,7 +3,7 @@ from pathlib import Path
from api import TestClient
def test_machines(api: TestClient, machine_flake: Path) -> None:
def test_machines(api: TestClient, clan_flake: Path) -> None:
response = api.get("/api/machines")
assert response.status_code == 200
assert response.json() == {"machines": []}
@@ -21,7 +21,7 @@ def test_machines(api: TestClient, machine_flake: Path) -> None:
assert response.json() == {"machines": [{"name": "test", "status": "unknown"}]}
def test_configure_machine(api: TestClient, machine_flake: Path) -> None:
def test_configure_machine(api: TestClient, clan_flake: Path) -> None:
# ensure error 404 if machine does not exist when accessing the config
response = api.get("/api/machines/machine1/config")
assert response.status_code == 404