@@ -423,34 +423,39 @@ def test_branch_success(mock_subproc_popen):
423423 'code' : 0 ,
424424 'branches' : [
425425 {
426+ 'is_current_branch' : True ,
426427 'is_remote_branch' : False ,
427428 'name' : 'feature-foo' ,
428429 'upstream' : 'origin/feature-foo' ,
429430 'top_commit' : 'abcdefghijklmnopqrstuvwxyz01234567890123' ,
430431 'tag' : None ,
431432 },
432433 {
434+ 'is_current_branch' : False ,
433435 'is_remote_branch' : False ,
434436 'name' : 'master' ,
435437 'upstream' : 'origin/master' ,
436438 'top_commit' : 'abcdefghijklmnopqrstuvwxyz01234567890123' ,
437439 'tag' : None ,
438440 },
439441 {
442+ 'is_current_branch' : False ,
440443 'is_remote_branch' : False ,
441444 'name' : 'feature-bar' ,
442445 'upstream' : None ,
443446 'top_commit' : '01234567899999abcdefghijklmnopqrstuvwxyz' ,
444447 'tag' : None
445448 },
446449 {
450+ 'is_current_branch' : False ,
447451 'is_remote_branch' : True ,
448452 'name' : 'origin/feature-foo' ,
449453 'upstream' : None ,
450454 'top_commit' : 'abcdefghijklmnopqrstuvwxyz01234567890123' ,
451455 'tag' : None ,
452456 },
453457 {
458+ 'is_current_branch' : False ,
454459 'is_remote_branch' : True ,
455460 'name' : 'origin/master' ,
456461 'upstream' : None ,
@@ -459,6 +464,7 @@ def test_branch_success(mock_subproc_popen):
459464 }
460465 ],
461466 'current_branch' : {
467+ 'is_current_branch' : True ,
462468 'is_remote_branch' : False ,
463469 'name' : 'feature-foo' ,
464470 'upstream' : 'origin/feature-foo' ,
@@ -563,20 +569,23 @@ def test_branch_success_detached_head(mock_subproc_popen):
563569 'code' : 0 ,
564570 'branches' : [
565571 {
572+ 'is_current_branch' : False ,
566573 'is_remote_branch' : False ,
567574 'name' : 'master' ,
568575 'upstream' : 'origin/master' ,
569576 'top_commit' : 'abcdefghijklmnopqrstuvwxyz01234567890123' ,
570577 'tag' : None ,
571578 },
572579 {
580+ 'is_current_branch' : True ,
573581 'is_remote_branch' : False ,
574582 'name' : '(HEAD detached at origin/feature-foo)' ,
575583 'upstream' : None ,
576584 'top_commit' : None ,
577585 'tag' : None ,
578586 },
579587 {
588+ 'is_current_branch' : False ,
580589 'is_remote_branch' : True ,
581590 'name' : 'origin/feature-foo' ,
582591 'upstream' : None ,
@@ -585,6 +594,7 @@ def test_branch_success_detached_head(mock_subproc_popen):
585594 }
586595 ],
587596 'current_branch' : {
597+ 'is_current_branch' : True ,
588598 'is_remote_branch' : False ,
589599 'name' : '(HEAD detached at origin/feature-foo)' ,
590600 'upstream' : None ,
0 commit comments