Skip to content

Commit 9706c21

Browse files
committed
chore(test_sync): Typings
1 parent ec598b6 commit 9706c21

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

tests/test_sync.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import pathlib
22
import textwrap
3-
from typing import Callable, List
3+
import typing as t
44

55
import pytest
66

77
import kaptan
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],
92-
remote_list: List[str],
93-
):
93+
remote_list: t.List[str],
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)