Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleades committed May 5, 2024
1 parent c6b641d commit ef99726
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/test_specify_output_dir.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"""Tests for cookiecutter's output directory customization feature."""

from pathlib import Path

import pytest

from cookiecutter import main
Expand All @@ -19,12 +21,12 @@ def context():


@pytest.fixture
def template(tmp_path):
def template(tmp_path: Path) -> Path:
"""Fixture to prepare test template directory."""
template_dir = tmp_path.joinpath("template")
template_dir = tmp_path / "template"
template_dir.mkdir()
template_dir.joinpath('cookiecutter.json').touch()
return str(template_dir)
(template_dir / 'cookiecutter.json').touch()
return template_dir


@pytest.fixture(autouse=True)
Expand Down

0 comments on commit ef99726

Please sign in to comment.