File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -508,6 +508,16 @@ def fn(
508508@skip_if_svn_missing
509509def 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 ()
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments