Coverage for tests/conftest.py: 100%
12 statements
« prev ^ index » next coverage.py v7.3.3, created at 2024-01-02 20:32 +0100
« prev ^ index » next coverage.py v7.3.3, created at 2024-01-02 20:32 +0100
1# SPDX-License-Identifier: MIT
2# Copyright (c) 2023 Kilian Lackhove
4import shutil
5from pathlib import Path
7import pytest
10@pytest.fixture()
11def resources_dir():
12 return Path(__file__).parent / "resources"
15@pytest.fixture()
16def dummy_project_dir(resources_dir, tmp_path):
17 source = resources_dir / "testproject"
18 dest = tmp_path / "testproject"
19 shutil.copytree(source, dest)
21 return dest