Coverage for src/tests/frontend/conftest.py: 100%
9 statements
« prev ^ index » next coverage.py v7.11.0, created at 2024-01-01 00:00 +0000
« prev ^ index » next coverage.py v7.11.0, created at 2024-01-01 00:00 +0000
1"""Module for pytest fixtures for testing the frontend module.."""
3from pathlib import Path
5import pytest
7from kwai_api.frontend.manifest import Manifest
10@pytest.fixture
11def manifest_path() -> Path:
12 """Load a manifest file from the data folder."""
13 return Path(__file__).parent / "data" / "manifest.json"
16@pytest.fixture
17def manifest(manifest_path) -> Manifest:
18 """Load a manifest file from the data folder."""
19 return Manifest.load_from_file(manifest_path)