Skip to content

Commit 4e66283

Browse files
committed
!squash more pytest plugin
1 parent ef7dd54 commit 4e66283

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/libvcs/pytest_plugin.py

+9-9
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ def empty_svn_repo(
461461
empty_svn_repo_path: pathlib.Path,
462462
) -> pathlib.Path:
463463
"""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():
465465
return empty_svn_repo_path
466466

467467
return _create_svn_remote_repo(
@@ -472,7 +472,7 @@ def empty_svn_repo(
472472
)
473473

474474

475-
@pytest.fixture
475+
@pytest.fixture(scope="session")
476476
@skip_if_svn_missing
477477
def create_svn_remote_repo(
478478
remote_repos_path: pathlib.Path,
@@ -504,15 +504,15 @@ def fn(
504504
return fn
505505

506506

507-
@pytest.fixture
507+
@pytest.fixture(scope="session")
508508
@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:
510512
"""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
516516

517517

518518
def _create_hg_remote_repo(

0 commit comments

Comments
 (0)