We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6a427d commit 397a689Copy full SHA for 397a689
tests/test_repo.py
@@ -112,7 +112,7 @@ def test_to_repo_objects(tmpdir: LEGACY_PATH):
112
113
assert r.dir == r.dir / r.repo_name
114
115
- if "remotes" in repo_dict:
+ if hasattr(r, "remotes") and isinstance(r, GitProject):
116
assert isinstance(r.remotes, dict)
117
for remote_name, remote_dict in r.remotes.items():
118
assert isinstance(remote_dict, dict)
0 commit comments