@@ -514,7 +514,6 @@ def test_upstream_handler_localbranch(self, mock_git):
514
514
515
515
516
516
class TestContent (ServerTest ):
517
-
518
517
@patch ("jupyterlab_git.git.execute" )
519
518
def test_content (self , mock_execute ):
520
519
# Given
@@ -548,7 +547,6 @@ def test_content(self, mock_execute):
548
547
],
549
548
)
550
549
551
-
552
550
@patch ("jupyterlab_git.git.execute" )
553
551
def test_content_working (self , mock_execute ):
554
552
# Given
@@ -577,7 +575,6 @@ def test_content_working(self, mock_execute):
577
575
payload = response .json ()
578
576
assert payload ["content" ] == content
579
577
580
-
581
578
@patch ("jupyterlab_git.git.execute" )
582
579
def test_content_index (self , mock_execute ):
583
580
# Given
@@ -611,7 +608,6 @@ def test_content_index(self, mock_execute):
611
608
],
612
609
)
613
610
614
-
615
611
@patch ("jupyterlab_git.git.execute" )
616
612
def test_content_unknown_special (self , mock_execute ):
617
613
# Given
@@ -633,7 +629,7 @@ def test_content_unknown_special(self, mock_execute):
633
629
634
630
with assert_http_error (500 , msg = "unknown special ref" ):
635
631
self .tester .post (["content" ], body = body )
636
-
632
+
637
633
@patch ("jupyterlab_git.git.execute" )
638
634
def test_content_show_handled_error (self , mock_execute ):
639
635
# Given
@@ -663,7 +659,6 @@ def test_content_show_handled_error(self, mock_execute):
663
659
payload = response .json ()
664
660
assert payload ["content" ] == ""
665
661
666
-
667
662
@patch ("jupyterlab_git.git.execute" )
668
663
def test_content_binary (self , mock_execute ):
669
664
# Given
@@ -683,7 +678,6 @@ def test_content_binary(self, mock_execute):
683
678
with assert_http_error (500 , msg = "file is not UTF-8" ):
684
679
self .tester .post (["content" ], body = body )
685
680
686
-
687
681
@patch ("jupyterlab_git.git.execute" )
688
682
def test_content_show_unhandled_error (self , mock_execute ):
689
683
# Given
@@ -703,7 +697,6 @@ def test_content_show_unhandled_error(self, mock_execute):
703
697
with assert_http_error (500 , msg = "Dummy error" ):
704
698
self .tester .post (["content" ], body = body )
705
699
706
-
707
700
@patch ("jupyterlab_git.git.execute" )
708
701
def test_content_getcontent_deleted_file (self , mock_execute ):
709
702
# Given
@@ -723,4 +716,4 @@ def test_content_getcontent_deleted_file(self, mock_execute):
723
716
# Then
724
717
assert response .status_code == 200
725
718
payload = response .json ()
726
- assert payload ["content" ] == ""
719
+ assert payload ["content" ] == ""
0 commit comments