We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent90128dc commit628afacCopy full SHA for 628afac
tests/sync/test_svn.py
@@ -30,6 +30,26 @@ def test_svn_sync(tmp_path: pathlib.Path, svn_remote_repo: pathlib.Path) -> None
30
assert (tmp_path/repo_name).exists()
31
32
33
+deftest_svn_sync_with_files(
34
+tmp_path:pathlib.Path,svn_remote_repo_with_files:pathlib.Path
35
+)->None:
36
+"""Tests for SvnSync."""
37
+repo_name="my_svn_project"
38
+
39
+svn_repo=SvnSync(
40
+url=f"file://{svn_remote_repo_with_files}",
41
+path=str(tmp_path/repo_name),
42
+ )
43
44
+svn_repo.obtain()
45
+svn_repo.update_repo()
46
47
+assertsvn_repo.get_revision()==0
48
+assertsvn_repo.get_revision_file("./")==3
49
50
+assert (tmp_path/repo_name).exists()
51
52
53
deftest_repo_svn_remote_checkout(
54
create_svn_remote_repo:CreateRepoPytestFixtureFn,
55
tmp_path:pathlib.Path,