Skip to content

Commit ca0f6cd

Browse files
committed
fixed pytest CI
1 parent bc44235 commit ca0f6cd

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

jupyterlab_git/tests/test_branch.py

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -423,46 +423,48 @@ def test_branch_success(mock_subproc_popen):
423423
'code': 0,
424424
'branches': [
425425
{
426-
'is_current_branch': True,
427426
'is_remote_branch': False,
428427
'name': 'feature-foo',
429428
'upstream': 'origin/feature-foo',
430429
'top_commit': 'abcdefghijklmnopqrstuvwxyz01234567890123',
431430
'tag': None,
432431
},
433432
{
434-
'is_current_branch': False,
435433
'is_remote_branch': False,
436434
'name': 'master',
437435
'upstream': 'origin/master',
438436
'top_commit': 'abcdefghijklmnopqrstuvwxyz01234567890123',
439437
'tag': None,
440438
},
441439
{
442-
'is_current_branch': False,
443440
'is_remote_branch': False,
444441
'name': 'feature-bar',
445442
'upstream': None,
446443
'top_commit': '01234567899999abcdefghijklmnopqrstuvwxyz',
447444
'tag': None
448445
},
449446
{
450-
'is_current_branch': False,
451447
'is_remote_branch': True,
452448
'name': 'origin/feature-foo',
453449
'upstream': None,
454450
'top_commit': 'abcdefghijklmnopqrstuvwxyz01234567890123',
455451
'tag': None,
456452
},
457453
{
458-
'is_current_branch': False,
459454
'is_remote_branch': True,
460455
'name': 'origin/master',
461456
'upstream': None,
462457
'top_commit': 'abcdefghijklmnopqrstuvwxyz01234567890123',
463458
'tag': None,
464459
}
465-
]
460+
],
461+
'current_branch': {
462+
'is_remote_branch': False,
463+
'name': 'feature-foo',
464+
'upstream': 'origin/feature-foo',
465+
'top_commit': 'abcdefghijklmnopqrstuvwxyz01234567890123',
466+
'tag': None,
467+
}
466468
}
467469

468470
# When
@@ -561,30 +563,34 @@ def test_branch_success_detached_head(mock_subproc_popen):
561563
'code': 0,
562564
'branches': [
563565
{
564-
'is_current_branch': False,
565566
'is_remote_branch': False,
566567
'name': 'master',
567568
'upstream': 'origin/master',
568569
'top_commit': 'abcdefghijklmnopqrstuvwxyz01234567890123',
569570
'tag': None,
570571
},
571572
{
572-
'is_current_branch': True,
573573
'is_remote_branch': False,
574574
'name': '(HEAD detached at origin/feature-foo)',
575575
'upstream': None,
576576
'top_commit': None,
577577
'tag': None,
578578
},
579579
{
580-
'is_current_branch': False,
581580
'is_remote_branch': True,
582581
'name': 'origin/feature-foo',
583582
'upstream': None,
584583
'top_commit': 'abcdefghijklmnopqrstuvwxyz01234567890123',
585584
'tag': None,
586585
}
587-
]
586+
],
587+
'current_branch': {
588+
'is_remote_branch': False,
589+
'name': '(HEAD detached at origin/feature-foo)',
590+
'upstream': None,
591+
'top_commit': None,
592+
'tag': None,
593+
}
588594
}
589595

590596
# When

0 commit comments

Comments
 (0)