Skip to content

Commit 475b31a

Browse files
committed
refactor!(pytest plugin[svn]) Consolidate repo creation function
1 parent d391886 commit 475b31a

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/libvcs/pytest_plugin.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -393,16 +393,14 @@ def git_remote_repo(
393393

394394

395395
def _create_svn_remote_repo(
396-
remote_repos_path: pathlib.Path,
397-
remote_repo_name: str,
396+
remote_repo_path: pathlib.Path,
398397
remote_repo_post_init: Optional[CreateRepoPostInitFn] = None,
399398
init_cmd_args: InitCmdArgs = None,
400399
) -> pathlib.Path:
401400
"""Create a test SVN repo to for checkout / commit purposes."""
402401
if init_cmd_args is None:
403402
init_cmd_args = []
404403

405-
remote_repo_path = remote_repos_path / remote_repo_name
406404
run(["svnadmin", "create", str(remote_repo_path), *init_cmd_args])
407405

408406
assert remote_repo_path.exists()
@@ -448,8 +446,7 @@ def empty_svn_repo(
448446
return empty_svn_repo_path
449447

450448
return _create_svn_remote_repo(
451-
remote_repos_path=empty_svn_repo_path.parent,
452-
remote_repo_name=empty_svn_repo_path.stem,
449+
remote_repo_path=empty_svn_repo_path,
453450
remote_repo_post_init=None,
454451
init_cmd_args=None,
455452
)

0 commit comments

Comments
 (0)