8000 test(test_to_repo_objects): Typings · vcs-python/vcspull@cae60e5 · GitHub
[go: up one dir, main page]

Skip to content

Commit cae60e5

Browse files
committed
test(test_to_repo_objects): Typings
1 parent dac9bef commit cae60e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_repo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def test_to_repo_objects(tmpdir: LEGACY_PATH):
112112

113113
assert r.dir == r.dir / r.repo_name
114114

115-
if "remotes" in repo_dict:
115+
if hasattr(r, "remotes") and isinstance(r, GitProject):
116116
assert isinstance(r.remotes, dict)
117117
for remote_name, remote_dict in r.remotes.items():
118118
assert isinstance(remote_dict, dict)

0 commit comments

Comments
 (0)
0