Skip to content

Commit 735b930

Browse files
committed
tests: Add git_local_clone fixture to doctest
1 parent 5393b3d commit 735b930

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libvcs/conftest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ def add_doctest_fixtures(
324324
create_git_remote_repo: CreateRepoCallbackFixtureProtocol,
325325
create_svn_remote_repo: CreateRepoCallbackFixtureProtocol,
326326
create_hg_remote_repo: CreateRepoCallbackFixtureProtocol,
327+
git_repo: pathlib.Path,
327328
):
328329
doctest_namespace["tmp_path"] = tmp_path
329330
if which("git"):
@@ -333,6 +334,7 @@ def add_doctest_fixtures(
333334
remote_repo_post_init=git_remote_repo_single_commit_post_init,
334335
)
335336
doctest_namespace["create_git_remote_repo_bare"] = create_git_remote_repo
337+
doctest_namespace["git_local_clone"] = git_repo
336338
if which("svn"):
337339
doctest_namespace["create_svn_remote_repo"] = create_svn_remote_repo
338340
if which("hg"):

0 commit comments

Comments
 (0)