Merge pull request 'cli-prep' (#45) from cli-prep into main
This commit is contained in:
@@ -1,2 +1,9 @@
|
|||||||
# Because we depend on nixpkgs sources, uploading to builders takes a long time
|
# Because we depend on nixpkgs sources, uploading to builders takes a long time
|
||||||
|
|
||||||
|
if type nix_direnv_watch_file &>/dev/null; then
|
||||||
|
nix_direnv_watch_file flake-module.nix
|
||||||
|
else
|
||||||
|
direnv watch flake-module.nix
|
||||||
|
fi
|
||||||
use flake .#clan --builders ''
|
use flake .#clan --builders ''
|
||||||
|
|
||||||
|
|||||||
@@ -6,12 +6,10 @@ from environment import mock_env
|
|||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def clan_flake(
|
def clan_flake(temporary_dir: Path, monkeypatch: pytest.MonkeyPatch) -> Iterator[Path]:
|
||||||
temporary_directory: Path, monkeypatch: pytest.MonkeyPatch
|
flake = temporary_dir / "clan-flake"
|
||||||
) -> Iterator[Path]:
|
|
||||||
flake = temporary_directory / "clan-flake"
|
|
||||||
flake.mkdir()
|
flake.mkdir()
|
||||||
(flake / ".clan-flake").touch()
|
(flake / ".clan-flake").touch()
|
||||||
monkeypatch.chdir(flake)
|
monkeypatch.chdir(flake)
|
||||||
with mock_env(HOME=str(temporary_directory)):
|
with mock_env(HOME=str(temporary_dir)):
|
||||||
yield temporary_directory
|
yield temporary_dir
|
||||||
|
|||||||
Reference in New Issue
Block a user