Skip to content

Commit

Permalink
Test RemoteCollection.names()
Browse files Browse the repository at this point in the history
  • Loading branch information
jdavid committed Oct 30, 2022
1 parent feda946 commit d97aa20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test_remote.py
Expand Up @@ -162,6 +162,7 @@ def test_remote_list(testrepo):
name = 'upstream'
url = 'https://github.com/libgit2/pygit2.git'
remote = testrepo.remotes.create(name, url)
assert remote.name in testrepo.remotes.names()
assert remote.name in [x.name for x in testrepo.remotes]

@utils.requires_network
Expand All @@ -170,7 +171,6 @@ def test_ls_remotes(testrepo):
remote = testrepo.remotes[0]

refs = remote.ls_remotes()

assert refs

# Check that a known ref is returned.
Expand All @@ -187,6 +187,7 @@ def test_remote_collection(testrepo):
name = 'upstream'
url = 'https://github.com/libgit2/pygit2.git'
remote = testrepo.remotes.create(name, url)
assert remote.name in testrepo.remotes.names()
assert remote.name in [x.name for x in testrepo.remotes]

@utils.refcount
Expand Down

0 comments on commit d97aa20

Please sign in to comment.