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

1"""Module for pytest fixtures for testing the frontend module..""" 

2 

3from pathlib import Path 

4 

5import pytest 

6 

7from kwai_api.frontend.manifest import Manifest 

8 

9 

10@pytest.fixture 

11def manifest_path() -> Path: 

12 """Load a manifest file from the data folder.""" 

13 return Path(__file__).parent / "data" / "manifest.json" 

14 

15 

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)