Working test_create_flake

This commit is contained in:
Qubasa
2023-10-20 01:20:40 +02:00
parent 3dc7d12e9c
commit 950808498f
3 changed files with 9 additions and 10 deletions

View File

@@ -80,9 +80,9 @@ def create_flake(
@pytest.fixture
def test_flake(
monkeypatch: pytest.MonkeyPatch, temporary_dir: Path
monkeypatch: pytest.MonkeyPatch, temporary_home: Path
) -> Iterator[FlakeForTest]:
yield from create_flake(monkeypatch, temporary_dir, FlakeName("test_flake"))
yield from create_flake(monkeypatch, temporary_home, FlakeName("test_flake"))
@pytest.fixture

View File

@@ -65,6 +65,6 @@ def test_create_flake(
pytest.fail("nixosConfigurations.machine1 not found in flake outputs")
# configure machine1
capsys.readouterr()
cli.run(["config", "--machine", "machine1", "services.openssh.enable"])
cli.run(["config", "--machine", "machine1", "services.openssh.enable", "", flake_name])
capsys.readouterr()
cli.run(["config", "--machine", "machine1", "services.openssh.enable", "true"])
cli.run(["config", "--machine", "machine1", "services.openssh.enable", "true", flake_name])