|
7 | 7 | import kaptan |
8 | 8 |
|
9 | 9 | from libvcs._internal.shortcuts import create_project |
| 10 | +from libvcs.pytest_plugin import CreateProjectCallbackFixtureProtocol |
10 | 11 | from libvcs.sync.git import GitRemote, GitSync |
11 | | -from tests.conftest import DummyRepoProtocol |
12 | 12 | from vcspull.cli.sync import update_repo |
13 | 13 | from vcspull.config import extract_repos, filter_repos, load_configs |
14 | 14 | from vcspull.types import ConfigDict |
@@ -88,14 +88,14 @@ def write_config_remote( |
88 | 88 | ) |
89 | 89 | def test_config_variations( |
90 | 90 | tmp_path: pathlib.Path, |
91 | | - create_git_dummy_repo: DummyRepoProtocol, |
| 91 | + create_git_remote_repo: CreateProjectCallbackFixtureProtocol, |
92 | 92 | config_tpl: str, |
93 | 93 | capsys: pytest.CaptureFixture[str], |
94 | 94 | remote_list: t.List[str], |
95 | 95 | ) -> None: |
96 | 96 | """Test config output with variation of config formats""" |
97 | 97 | dummy_repo_name = "dummy_repo" |
98 | | - dummy_repo = create_git_dummy_repo(dummy_repo_name) |
| 98 | + dummy_repo = create_git_remote_repo(remote_repo_name=dummy_repo_name) |
99 | 99 |
|
100 | 100 | config_file = write_config_remote( |
101 | 101 | config_path=tmp_path / "myrepos.yaml", |
@@ -157,17 +157,17 @@ def test_config_variations( |
157 | 157 | ) |
158 | 158 | def test_updating_remote( |
159 | 159 | tmp_path: pathlib.Path, |
160 | | - create_git_dummy_repo: DummyRepoProtocol, |
| 160 | + create_git_remote_repo: CreateProjectCallbackFixtureProtocol, |
161 | 161 | config_tpl: str, |
162 | 162 | has_extra_remotes: bool, |
163 | 163 | ) -> None: |
164 | 164 | """Ensure additions/changes to yaml config are reflected""" |
165 | 165 |
|
166 | 166 | dummy_repo_name = "dummy_repo" |
167 | | - dummy_repo = create_git_dummy_repo(dummy_repo_name) |
| 167 | + dummy_repo = create_git_remote_repo(remote_repo_name=dummy_repo_name) |
168 | 168 |
|
169 | 169 | mirror_name = "mirror_repo" |
170 | | - mirror_repo = create_git_dummy_repo(mirror_name) |
| 170 | + mirror_repo = create_git_remote_repo(remote_repo_name=mirror_name) |
171 | 171 |
|
172 | 172 | repo_parent = tmp_path / "study" / "myrepo" |
173 | 173 | repo_parent.mkdir(parents=True) |
|
0 commit comments