Coverage for tests/conftest.py: 100%
11 statements
« prev ^ index » next coverage.py v7.17.0, created at 2026-10-31 22:06 +0000
« prev ^ index » next coverage.py v7.17.0, created at 2026-10-31 22:06 +0000
1"""Shared fixtures for the `coursebook` tests."""
3from __future__ import annotations
5import pathlib
6import shutil
8import pytest
10PROJECTS: pathlib.Path = pathlib.Path(__file__).parent / 'projects'
13@pytest.fixture
14def coursebook_project(tmp_path: pathlib.Path) -> pathlib.Path:
15 """Returns a copy of the coursebook test project in a temp folder."""
16 return pathlib.Path(
17 shutil.copytree(PROJECTS / 'coursebook', tmp_path / 'coursebook'))
20@pytest.fixture
21def law_review_project(tmp_path: pathlib.Path) -> pathlib.Path:
22 """Returns a copy of the law review test project in a temp folder."""
23 return pathlib.Path(
24 shutil.copytree(PROJECTS / 'law_review', tmp_path / 'law_review'))