write test for get_clan_flake_toplevel
This commit is contained in:
14
pkgs/clan-cli/tests/test_dirs.py
Normal file
14
pkgs/clan-cli/tests/test_dirs.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
||||
from clan_cli.dirs import get_clan_flake_toplevel
|
||||
from clan_cli.errors import ClanError
|
||||
|
||||
|
||||
def test_get_clan_flake_toplevel(
|
||||
monkeypatch: pytest.MonkeyPatch, temporary_dir: Path
|
||||
) -> None:
|
||||
monkeypatch.chdir(temporary_dir)
|
||||
with pytest.raises(ClanError):
|
||||
get_clan_flake_toplevel()
|
||||
Reference in New Issue
Block a user