diff --git a/pkgs/clan-cli/clan_cli/webui/routers/clan_modules.py b/pkgs/clan-cli/clan_cli/webui/routers/clan_modules.py index 1721546fa..d3835194a 100644 --- a/pkgs/clan-cli/clan_cli/webui/routers/clan_modules.py +++ b/pkgs/clan-cli/clan_cli/webui/routers/clan_modules.py @@ -14,7 +14,7 @@ log = logging.getLogger(__name__) router = APIRouter() -@router.get("/api/{flake_name}clan_modules") +@router.get("/api/{flake_name}/clan_modules") async def list_clan_modules(flake_name: FlakeName) -> ClanModulesResponse: module_names, error = get_clan_module_names(flake_name) if error is not None: diff --git a/pkgs/clan-cli/tests/test_clan_modules.py b/pkgs/clan-cli/tests/test_clan_modules.py index 374fa4dff..6fa6d64b4 100644 --- a/pkgs/clan-cli/tests/test_clan_modules.py +++ b/pkgs/clan-cli/tests/test_clan_modules.py @@ -2,12 +2,12 @@ from pathlib import Path import pytest from api import TestClient - +from fixtures_flakes import FlakeForTest @pytest.mark.impure() -def test_configure_machine(api: TestClient, test_flake_with_core: Path) -> None: +def test_configure_machine(api: TestClient, test_flake_with_core: FlakeForTest) -> None: # retrieve the list of available clanModules - response = api.get("/api/clan_modules") + response = api.get(f"/api/{test_flake_with_core.name}/clan_modules") response_json = response.json() assert response.status_code == 200 assert isinstance(response_json, dict)