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 e20e66e commit 574934bCopy full SHA for 574934b
tests/test_sync.py
@@ -164,7 +164,16 @@ def test_config_variations(
164
for remote_name in remotes:
165
current_remote = repo.remote(remote_name)
166
assert current_remote is not None
167
- assert current_remote.fetch_url == repo_url
+ assert repo_dict is not None
168
+ assert isinstance(remote_name, str)
169
+ if (
170
+ "remotes" in repo_dict
171
+ and isinstance(repo_dict["remotes"], dict)
172
+ and remote_name in repo_dict["remotes"]
173
+ ):
174
+ assert current_remote.fetch_url == repo_dict["remotes"][
175
+ remote_name
176
+ ].fetch_url.replace("git+", "")
177
178
179
class UpdatingRemoteFixture(t.NamedTuple):
0 commit comments