| 1 |
# Copyright 2015-2026 Facundo Batista, Nicolás Demarchi |
| 2 |
# |
| 3 |
# This program is free software: you can redistribute it and/or modify it |
| 4 |
# under the terms of the GNU General Public License version 3, as published |
| 5 |
# by the Free Software Foundation. |
| 6 |
# |
| 7 |
# This program is distributed in the hope that it will be useful, but |
| 8 |
# WITHOUT ANY WARRANTY; without even the implied warranties of |
| 9 |
# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR |
| 10 |
# PURPOSE. See the GNU General Public License for more details. |
| 11 |
# |
| 12 |
# You should have received a copy of the GNU General Public License along |
| 13 |
# with this program. If not, see <http://www.gnu.org/licenses/>. |
| 14 |
# |
| 15 |
# For further info, check https://github.com/PyAr/fades |
| 16 |
|
| 17 |
from pytest import fixture |
| 18 |
|
| 19 |
from fades import cache |
| 20 |
|
| 21 |
|
| 22 |
@fixture(scope="function") |
| 23 |
def venvscache(tmp_path): |
| 24 |
"""Fixture for a cache file for virtualenvs.""" |
| 25 |
venvs_cache = cache.VEnvsCache(tmp_path / "test_venv_cache") |
| 26 |
return venvs_cache |