generated from Luis/nextjs-python-web-template
16 lines
395 B
Python
16 lines
395 B
Python
from pathlib import Path
|
|
from typing import Iterator
|
|
|
|
import pytest
|
|
from environment import mock_env
|
|
|
|
|
|
@pytest.fixture
|
|
def clan_flake(temporary_dir: Path, monkeypatch: pytest.MonkeyPatch) -> Iterator[Path]:
|
|
flake = temporary_dir / "clan-flake"
|
|
flake.mkdir()
|
|
(flake / ".clan-flake").touch()
|
|
monkeypatch.chdir(flake)
|
|
with mock_env(HOME=str(temporary_dir)):
|
|
yield flake
|