Fixing test_clan_modules test
Some checks failed
checks / test (pull_request) Failing after 54s
checks-impure / test (pull_request) Successful in 1m17s

This commit is contained in:
Luis Hebendanz 2023-10-27 23:39:02 +02:00
parent 00ef406713
commit 032cdd731a
2 changed files with 4 additions and 4 deletions

View File

@ -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:

View File

@ -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)