MCPcopy Create free account
hub / github.com/commitizen-tools/commitizen / fixture

Function fixture

tests/test_bump_update_version_in_files.py:22–25  ·  view source on GitHub ↗
(source: str, destination: str)

Source from the content-addressed store, hash-verified

20@pytest.fixture
21def sample_file(tmp_path: Path, data_dir: Path) -> SampleFileFixture:
22 def fixture(source: str, destination: str) -> Path:
23 tmp_file = tmp_path / destination
24 copyfile(data_dir / source, tmp_file)
25 return tmp_file
26
27 return fixture
28

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected