Skip to content

Commit a1cea48

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

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/libvcs/pytest_plugin.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -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)