1
0
Fork 0
commitizen/tests/providers/conftest.py
Daniel Baumann 167a3f8553
Adding upstream version 4.6.0+dfsg.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-04-21 11:40:48 +02:00

15 lines
263 B
Python

from __future__ import annotations
import os
from collections.abc import Iterator
from pathlib import Path
import pytest
@pytest.fixture
def chdir(tmp_path: Path) -> Iterator[Path]:
cwd = Path()
os.chdir(tmp_path)
yield tmp_path
os.chdir(cwd)