Skip to content

Commit ea0348b

Browse files
committed
tests(cmd.git): Stub out test_git
1 parent 4c7cfbd commit ea0348b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/cmd/test_git.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import pathlib
2+
from typing import Callable
3+
4+
import pytest
5+
6+
from libvcs.cmd import git
7+
8+
9+
@pytest.mark.parametrize("dir_type", [str, pathlib.Path])
10+
def test_run(dir_type: Callable, tmp_path: pathlib.Path):
11+
repo = git.Git(dir=dir_type(tmp_path))
12+
13+
assert repo.dir == tmp_path

0 commit comments

Comments
 (0)