Skip to content

Commit 5fa09ee

Browse files
committed
!squash svn
1 parent 4e66283 commit 5fa09ee

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

src/libvcs/pytest_plugin.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,16 @@ def fn(
508508
@skip_if_svn_missing
509509
def svn_remote_repo(
510510
create_svn_remote_repo: CreateRepoPytestFixtureFn,
511+
) -> pathlib.Path:
512+
"""Pre-made. Local file:// based SVN server."""
513+
repo_path = create_svn_remote_repo()
514+
return repo_path
515+
516+
517+
@pytest.fixture(scope="session")
518+
@skip_if_svn_missing
519+
def svn_remote_repo_with_files(
520+
create_svn_remote_repo: CreateRepoPytestFixtureFn,
511521
) -> pathlib.Path:
512522
"""Pre-made. Local file:// based SVN server."""
513523
repo_path = create_svn_remote_repo()

tests/sync/test_svn.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,15 @@
1212
pytestmark = pytest.mark.skip(reason="svn is not available")
1313

1414

15-
def test_svn_sync(tmp_path: pathlib.Path, svn_remote_repo: pathlib.Path) -> None:
15+
def test_svn_sync(
16+
tmp_path: pathlib.Path,
17+
svn_remote_repo_with_files: pathlib.Path,
18+
) -> None:
1619
"""Tests for SvnSync."""
1720
repo_name = "my_svn_project"
1821

1922
svn_repo = SvnSync(
20-
url=f"file://{svn_remote_repo}",
23+
url=f"file://{svn_remote_repo_with_files}",
2124
path=str(tmp_path / repo_name),
2225
)
2326

0 commit comments

Comments
 (0)