- Add mock-specific build artifacts (chroot/, mock-*, mockroot/) - Include package build files (*.deb, *.changes, *.buildinfo) - Add development tools (.coverage, .pytest_cache, .tox) - Include system files (.DS_Store, Thumbs.db, ._*) - Add temporary and backup files (*.tmp, *.bak, *.backup) - Include local configuration overrides (config.local.yaml, .env.local) - Add test artifacts and documentation builds - Comprehensive coverage for Python build system project This ensures build artifacts, chroot environments, and development tools are properly ignored in version control.
14 lines
404 B
Python
14 lines
404 B
Python
"""Common pytest fixtures."""
|
||
|
||
import pytest
|
||
|
||
|
||
pytest_version_tuple = tuple(int(piece) for piece in pytest.__version__.split("."))
|
||
if pytest_version_tuple < (3, 9):
|
||
# Old versions of pytest don’t have the tmp_path fixture, fill it in here.
|
||
from pathlib import Path
|
||
|
||
@pytest.fixture
|
||
def tmp_path(tmpdir):
|
||
"""Return temporary directory path object."""
|
||
return Path(tmpdir)
|