clan-cli/tests/clan_flake: add flake.nix
This commit is contained in:
@@ -10,6 +10,15 @@ def clan_flake(temporary_dir: Path, monkeypatch: pytest.MonkeyPatch) -> Iterator
|
|||||||
flake = temporary_dir / "clan-flake"
|
flake = temporary_dir / "clan-flake"
|
||||||
flake.mkdir()
|
flake.mkdir()
|
||||||
(flake / ".clan-flake").touch()
|
(flake / ".clan-flake").touch()
|
||||||
|
(flake / "flake.nix").write_text(
|
||||||
|
"""
|
||||||
|
{
|
||||||
|
description = "A flake for testing clan";
|
||||||
|
inputs = {};
|
||||||
|
outputs = { self, nixpkgs }: {};
|
||||||
|
}
|
||||||
|
"""
|
||||||
|
)
|
||||||
monkeypatch.chdir(flake)
|
monkeypatch.chdir(flake)
|
||||||
with mock_env(HOME=str(temporary_dir)):
|
with mock_env(HOME=str(temporary_dir)):
|
||||||
yield flake
|
yield flake
|
||||||
|
|||||||
Reference in New Issue
Block a user