File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 13
13
from libvcs ._internal .run import run , which
14
14
from libvcs .projects .git import GitProject , GitRemote
15
15
from libvcs .projects .hg import MercurialProject
16
+ from libvcs .projects .svn import SubversionProject
16
17
17
18
skip_if_git_missing = pytest .mark .skipif (
18
19
not which ("git" ), reason = "git is not available"
@@ -347,6 +348,19 @@ def hg_repo(
347
348
return hg_repo
348
349
349
350
351
+ @pytest .fixture
352
+ def svn_repo (
353
+ projects_path : pathlib .Path , svn_remote_repo : pathlib .Path
354
+ ) -> SubversionProject :
355
+ """Pre-made svn clone of remote repo checked out to user's projects dir."""
356
+ svn_repo = SubversionProject (
357
+ url = f"file://{ svn_remote_repo } " ,
358
+ dir = str (projects_path / "svn_repo" ),
359
+ )
360
+ svn_repo .obtain ()
361
+ return svn_repo
362
+
363
+
350
364
@pytest .fixture (autouse = True )
351
365
def add_doctest_fixtures (
352
366
doctest_namespace : dict [str , Any ],
You can’t perform that action at this time.
0 commit comments