We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c7cfbd commit ea0348bCopy full SHA for ea0348b
1 file changed
tests/cmd/test_git.py
@@ -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