Fixing test_clan_modules test
This commit is contained in:
parent
00ef406713
commit
032cdd731a
@ -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:
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user