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 dac9bef commit cae60e5Copy full SHA for cae60e5
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