File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
import pathlib
2
+ import shutil
2
3
import typing as t
3
4
4
5
import pytest
@@ -20,7 +21,7 @@ def test_sync_cli_non_existent(tmp_path: pathlib.Path) -> None:
20
21
21
22
22
23
def test_sync (
23
- home_path : pathlib .Path ,
24
+ user_path : pathlib .Path ,
24
25
config_path : pathlib .Path ,
25
26
tmp_path : pathlib .Path ,
26
27
git_repo : GitSync ,
@@ -132,7 +133,7 @@ class SyncBrokenFixture(t.NamedTuple):
132
133
ids = [test .test_id for test in SYNC_BROKEN_REPO_FIXTURES ],
133
134
)
134
135
def test_sync_broken (
135
- home_path : pathlib .Path ,
136
+ user_path : pathlib .Path ,
136
137
config_path : pathlib .Path ,
137
138
tmp_path : pathlib .Path ,
138
139
git_repo : GitSync ,
@@ -144,10 +145,10 @@ def test_sync_broken(
144
145
) -> None :
145
146
runner = CliRunner ()
146
147
147
- github_projects = home_path / "github_projects"
148
+ github_projects = user_path / "github_projects"
148
149
my_git_repo = github_projects / "my_git_repo"
149
150
if my_git_repo .is_dir ():
150
- my_git_repo . rmdir ( )
151
+ shutil . rmtree ( my_git_repo )
151
152
152
153
with runner .isolated_filesystem (temp_dir = tmp_path ):
153
154
config = {
You can’t perform that action at this time.
0 commit comments