Skip to content

Commit 1da26a4

Browse files
committed
Blacken code
1 parent ff9cc85 commit 1da26a4

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

jupyterlab_git/tests/test_handlers.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,6 @@ def test_upstream_handler_localbranch(self, mock_git):
514514

515515

516516
class TestContent(ServerTest):
517-
518517
@patch("jupyterlab_git.git.execute")
519518
def test_content(self, mock_execute):
520519
# Given
@@ -548,7 +547,6 @@ def test_content(self, mock_execute):
548547
],
549548
)
550549

551-
552550
@patch("jupyterlab_git.git.execute")
553551
def test_content_working(self, mock_execute):
554552
# Given
@@ -577,7 +575,6 @@ def test_content_working(self, mock_execute):
577575
payload = response.json()
578576
assert payload["content"] == content
579577

580-
581578
@patch("jupyterlab_git.git.execute")
582579
def test_content_index(self, mock_execute):
583580
# Given
@@ -611,7 +608,6 @@ def test_content_index(self, mock_execute):
611608
],
612609
)
613610

614-
615611
@patch("jupyterlab_git.git.execute")
616612
def test_content_unknown_special(self, mock_execute):
617613
# Given
@@ -633,7 +629,7 @@ def test_content_unknown_special(self, mock_execute):
633629

634630
with assert_http_error(500, msg="unknown special ref"):
635631
self.tester.post(["content"], body=body)
636-
632+
637633
@patch("jupyterlab_git.git.execute")
638634
def test_content_show_handled_error(self, mock_execute):
639635
# Given
@@ -663,7 +659,6 @@ def test_content_show_handled_error(self, mock_execute):
663659
payload = response.json()
664660
assert payload["content"] == ""
665661

666-
667662
@patch("jupyterlab_git.git.execute")
668663
def test_content_binary(self, mock_execute):
669664
# Given
@@ -683,7 +678,6 @@ def test_content_binary(self, mock_execute):
683678
with assert_http_error(500, msg="file is not UTF-8"):
684679
self.tester.post(["content"], body=body)
685680

686-
687681
@patch("jupyterlab_git.git.execute")
688682
def test_content_show_unhandled_error(self, mock_execute):
689683
# Given
@@ -703,7 +697,6 @@ def test_content_show_unhandled_error(self, mock_execute):
703697
with assert_http_error(500, msg="Dummy error"):
704698
self.tester.post(["content"], body=body)
705699

706-
707700
@patch("jupyterlab_git.git.execute")
708701
def test_content_getcontent_deleted_file(self, mock_execute):
709702
# Given
@@ -723,4 +716,4 @@ def test_content_getcontent_deleted_file(self, mock_execute):
723716
# Then
724717
assert response.status_code == 200
725718
payload = response.json()
726-
assert payload["content"] == ""
719+
assert payload["content"] == ""

0 commit comments

Comments
 (0)