Skip to content

Commit 385153a

Browse files
committed
test: Update test for get_current_remote_name
1 parent 76e599d commit 385153a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_git.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ def test_get_current_remote_name(git_repo):
216216
new_branch = 'another-branch-with-no-upstream'
217217
git_repo.run(['checkout', '-B', new_branch])
218218
assert (
219-
git_repo.get_current_remote_name() is None
220-
), 'branch w/o upstream should return None'
219+
git_repo.get_current_remote_name() == new_branch
220+
), 'branch w/o upstream should return branch only'
221221

222222
new_remote_name = 'new_remote_name'
223223
git_repo.set_remote(

0 commit comments

Comments
 (0)