cli: rename clan_flake to test_flake

This commit is contained in:
Jörg Thalheim
2023-09-15 12:31:18 +02:00
parent 54ac8b6269
commit 87f0b090ef
12 changed files with 74 additions and 56 deletions

View File

@@ -3,7 +3,7 @@ from pathlib import Path
from api import TestClient
def test_machines(api: TestClient, clan_flake: Path) -> None:
def test_machines(api: TestClient, test_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, clan_flake: Path) -> None:
assert response.json() == {"machines": [{"name": "test", "status": "unknown"}]}
def test_configure_machine(api: TestClient, clan_flake: Path) -> None:
def test_configure_machine(api: TestClient, test_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