|
12 | 12 | from .helpers import build_file_tree
|
13 | 13 |
|
14 | 14 |
|
15 |
| -def test_copy_symlink(tmp_path_factory): |
| 15 | +def test_copy_symlink(tmp_path_factory: pytest.TempPathFactory) -> None: |
16 | 16 | src, dst = map(tmp_path_factory.mktemp, ("src", "dst"))
|
17 | 17 | # Prepare repo bundle
|
18 | 18 | repo = src / "repo"
|
@@ -47,7 +47,7 @@ def test_copy_symlink(tmp_path_factory):
|
47 | 47 | assert readlink(dst / "symlink.txt") == Path("target.txt")
|
48 | 48 |
|
49 | 49 |
|
50 |
| -def test_copy_symlink_templated_name(tmp_path_factory): |
| 50 | +def test_copy_symlink_templated_name(tmp_path_factory: pytest.TempPathFactory) -> None: |
51 | 51 | src, dst = map(tmp_path_factory.mktemp, ("src", "dst"))
|
52 | 52 | # Prepare repo bundle
|
53 | 53 | repo = src / "repo"
|
@@ -83,7 +83,9 @@ def test_copy_symlink_templated_name(tmp_path_factory):
|
83 | 83 | assert readlink(dst / "symlink.txt") == Path("target.txt")
|
84 | 84 |
|
85 | 85 |
|
86 |
| -def test_copy_symlink_templated_target(tmp_path_factory): |
| 86 | +def test_copy_symlink_templated_target( |
| 87 | + tmp_path_factory: pytest.TempPathFactory, |
| 88 | +) -> None: |
87 | 89 | src, dst = map(tmp_path_factory.mktemp, ("src", "dst"))
|
88 | 90 | # Prepare repo bundle
|
89 | 91 | repo = src / "repo"
|
@@ -125,7 +127,7 @@ def test_copy_symlink_templated_target(tmp_path_factory):
|
125 | 127 | assert readlink(dst / "symlink2.txt") == Path("{{ target_name }}.txt")
|
126 | 128 |
|
127 | 129 |
|
128 |
| -def test_copy_symlink_missing_target(tmp_path_factory): |
| 130 | +def test_copy_symlink_missing_target(tmp_path_factory: pytest.TempPathFactory) -> None: |
129 | 131 | src, dst = map(tmp_path_factory.mktemp, ("src", "dst"))
|
130 | 132 | # Prepare repo bundle
|
131 | 133 | repo = src / "repo"
|
@@ -160,7 +162,9 @@ def test_copy_symlink_missing_target(tmp_path_factory):
|
160 | 162 | ) # exists follows symlinks, It returns False as the target doesn't exist
|
161 | 163 |
|
162 | 164 |
|
163 |
| -def test_option_preserve_symlinks_false(tmp_path_factory): |
| 165 | +def test_option_preserve_symlinks_false( |
| 166 | + tmp_path_factory: pytest.TempPathFactory, |
| 167 | +) -> None: |
164 | 168 | src, dst = map(tmp_path_factory.mktemp, ("src", "dst"))
|
165 | 169 | # Prepare repo bundle
|
166 | 170 | repo = src / "repo"
|
@@ -194,7 +198,9 @@ def test_option_preserve_symlinks_false(tmp_path_factory):
|
194 | 198 | assert not os.path.islink(dst / "symlink.txt")
|
195 | 199 |
|
196 | 200 |
|
197 |
| -def test_option_preserve_symlinks_default(tmp_path_factory): |
| 201 | +def test_option_preserve_symlinks_default( |
| 202 | + tmp_path_factory: pytest.TempPathFactory, |
| 203 | +) -> None: |
198 | 204 | src, dst = map(tmp_path_factory.mktemp, ("src", "dst"))
|
199 | 205 | # Prepare repo bundle
|
200 | 206 | repo = src / "repo"
|
@@ -227,7 +233,7 @@ def test_option_preserve_symlinks_default(tmp_path_factory):
|
227 | 233 | assert not os.path.islink(dst / "symlink.txt")
|
228 | 234 |
|
229 | 235 |
|
230 |
| -def test_update_symlink(tmp_path_factory): |
| 236 | +def test_update_symlink(tmp_path_factory: pytest.TempPathFactory) -> None: |
231 | 237 | src, dst = map(tmp_path_factory.mktemp, ("src", "dst"))
|
232 | 238 |
|
233 | 239 | build_file_tree(
|
@@ -287,7 +293,7 @@ def test_update_symlink(tmp_path_factory):
|
287 | 293 | assert readlink(dst / "symlink.txt") == Path("bbbb.txt")
|
288 | 294 |
|
289 | 295 |
|
290 |
| -def test_exclude_symlink(tmp_path_factory): |
| 296 | +def test_exclude_symlink(tmp_path_factory: pytest.TempPathFactory) -> None: |
291 | 297 | src, dst = map(tmp_path_factory.mktemp, ("src", "dst"))
|
292 | 298 | # Prepare repo bundle
|
293 | 299 | repo = src / "repo"
|
@@ -320,7 +326,7 @@ def test_exclude_symlink(tmp_path_factory):
|
320 | 326 | assert not (dst / "symlink.txt").is_symlink()
|
321 | 327 |
|
322 | 328 |
|
323 |
| -def test_pretend_symlink(tmp_path_factory): |
| 329 | +def test_pretend_symlink(tmp_path_factory: pytest.TempPathFactory) -> None: |
324 | 330 | src, dst = map(tmp_path_factory.mktemp, ("src", "dst"))
|
325 | 331 | # Prepare repo bundle
|
326 | 332 | repo = src / "repo"
|
@@ -353,7 +359,7 @@ def test_pretend_symlink(tmp_path_factory):
|
353 | 359 | assert not (dst / "symlink.txt").is_symlink()
|
354 | 360 |
|
355 | 361 |
|
356 |
| -def test_copy_symlink_none_path(tmp_path_factory): |
| 362 | +def test_copy_symlink_none_path(tmp_path_factory: pytest.TempPathFactory) -> None: |
357 | 363 | src, dst = map(tmp_path_factory.mktemp, ("src", "dst"))
|
358 | 364 | # Prepare repo bundle
|
359 | 365 | repo = src / "repo"
|
@@ -388,7 +394,7 @@ def test_copy_symlink_none_path(tmp_path_factory):
|
388 | 394 | assert not os.path.islink(dst / "symlink.txt")
|
389 | 395 |
|
390 | 396 |
|
391 |
| -def test_recursive_symlink(tmp_path_factory: pytest.TempPathFactory): |
| 397 | +def test_recursive_symlink(tmp_path_factory: pytest.TempPathFactory) -> None: |
392 | 398 | src, dst = map(tmp_path_factory.mktemp, ("src", "dst"))
|
393 | 399 | build_file_tree(
|
394 | 400 | {
|
|
0 commit comments