Fixing test_clan_modules test
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user