.. _program_listing_file_tests_conftest.py: Program Listing for File conftest.py ==================================== |exhale_lsh| :ref:`Return to documentation for file ` (``tests/conftest.py``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: py from pathlib import Path from .venv import VEnv import pytest @pytest.fixture(scope="session") def curdir() -> Path: return Path(__file__).parent.resolve() @pytest.fixture() def virtualenv(tmp_path: Path) -> VEnv: """Temporary virtualenv for the test projects.""" path = tmp_path / "venv" return VEnv(path)