@@ -461,7 +461,7 @@ def empty_svn_repo(
461
461
empty_svn_repo_path : pathlib .Path ,
462
462
) -> pathlib .Path :
463
463
"""Return factory to create svn remote repo to for clone / push purposes."""
464
- if empty_svn_repo_path .exists () and (empty_svn_repo_path / ".git " ).exists ():
464
+ if empty_svn_repo_path .exists () and (empty_svn_repo_path / "conf " ).exists ():
465
465
return empty_svn_repo_path
466
466
467
467
return _create_svn_remote_repo (
@@ -472,7 +472,7 @@ def empty_svn_repo(
472
472
)
473
473
474
474
475
- @pytest .fixture
475
+ @pytest .fixture ( scope = "session" )
476
476
@skip_if_svn_missing
477
477
def create_svn_remote_repo (
478
478
remote_repos_path : pathlib .Path ,
@@ -504,15 +504,15 @@ def fn(
504
504
return fn
505
505
506
506
507
- @pytest .fixture
507
+ @pytest .fixture ( scope = "session" )
508
508
@skip_if_svn_missing
509
- def svn_remote_repo (remote_repos_path : pathlib .Path ) -> pathlib .Path :
509
+ def svn_remote_repo (
510
+ create_svn_remote_repo : CreateRepoPytestFixtureFn ,
511
+ ) -> pathlib .Path :
510
512
"""Pre-made. Local file:// based SVN server."""
511
- return _create_svn_remote_repo (
512
- remote_repos_path = remote_repos_path ,
513
- remote_repo_name = "svn_server_dir" ,
514
- remote_repo_post_init = None ,
515
- )
513
+ repo_path = create_svn_remote_repo ()
514
+ svn_remote_repo_single_commit_post_init (remote_repo_path = repo_path )
515
+ return repo_path
516
516
517
517
518
518
def _create_hg_remote_repo (
0 commit comments