Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 56ce1a7

Browse filesBrowse files
committed
chore(test_sync): Typings
1 parent ec598b6 commit 56ce1a7
Copy full SHA for 56ce1a7

File tree

Expand file treeCollapse file tree

1 file changed

+6
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-5
lines changed

‎tests/test_sync.py

Copy file name to clipboardExpand all lines: tests/test_sync.py
+6-5Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
from libvcs._internal.shortcuts import create_project
1010
from libvcs.projects.git import GitProject, GitRemote
11+
from tests.conftest import DummyRepoProtocol
1112
from vcspull.cli.sync import update_repo
1213
from vcspull.config import extract_repos, filter_repos, load_configs
1314
from vcspull.types import ConfigDict
@@ -86,11 +87,11 @@ def write_config_remote(
8687
)
8788
def test_config_variations(
8889
tmp_path: pathlib.Path,
89-
create_git_dummy_repo: Callable[[str], pathlib.Path],
90+
create_git_dummy_repo: DummyRepoProtocol,
9091
config_tpl: str,
9192
capsys: pytest.CaptureFixture[str],
9293
remote_list: List[str],
93-
):
94+
) -> None:
9495
"""Test config output with variation of config formats"""
9596
dummy_repo_name = "dummy_repo"
9697
dummy_repo = create_git_dummy_repo(dummy_repo_name)
@@ -155,10 +156,10 @@ def test_config_variations(
155156
)
156157
def test_updating_remote(
157158
tmp_path: pathlib.Path,
158-
create_git_dummy_repo: Callable[[str], pathlib.Path],
159+
create_git_dummy_repo: DummyRepoProtocol,
159160
config_tpl: str,
160-
has_extra_remotes,
161-
):
161+
has_extra_remotes: bool,
162+
) -> None:
162163
"""Ensure additions/changes to yaml config are reflected"""
163164

164165
dummy_repo_name = "dummy_repo"

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.