make git optional again

This commit is contained in:
Jörg Thalheim
2023-09-22 16:03:14 +02:00
parent e2cf3c1601
commit e3b2424d9d
4 changed files with 14 additions and 6 deletions

View File

@@ -11,7 +11,7 @@ def test_get_clan_flake_toplevel(
) -> None:
monkeypatch.chdir(temporary_dir)
with pytest.raises(ClanError):
get_clan_flake_toplevel()
print(get_clan_flake_toplevel())
(temporary_dir / ".git").touch()
assert get_clan_flake_toplevel() == temporary_dir