Reformat recent test changes for consistent style
Marco Ricci

Marco Ricci commited on 2026-06-20 11:36:36
Zeige 1 geänderte Dateien mit 17 Einfügungen und 5 Löschungen.

... ...
@@ -618,7 +618,9 @@ class TestStubbedSSHAgentSocketRequests(TestStubbedSSHAgentSocket):
618 618
 class TestStubbedSSHAgentSocketProperOperations(TestStubbedSSHAgentSocket):
619 619
     """Test the stubbed SSH agent socket: proper use and misuse."""
620 620
 
621
-    def test_close_multiple(self) -> None:
621
+    def test_close_multiple(
622
+        self,
623
+    ) -> None:
622 624
         """The agent can be closed repeatedly."""
623 625
         with self._get_agent(extended_agent=None) as agent:
624 626
             pass
... ...
@@ -626,7 +628,9 @@ class TestStubbedSSHAgentSocketProperOperations(TestStubbedSSHAgentSocket):
626 628
             pass
627 629
         del agent
628 630
 
629
-    def test_closed_agents_cannot_be_interacted_with(self) -> None:
631
+    def test_closed_agents_cannot_be_interacted_with(
632
+        self,
633
+    ) -> None:
630 634
         """The agent cannot be usefully used after close."""
631 635
         with self._get_agent(extended_agent=None) as agent:
632 636
             pass
... ...
@@ -643,7 +647,9 @@ class TestStubbedSSHAgentSocketProperOperations(TestStubbedSSHAgentSocket):
643 647
         with pytest.raises(OSError, match=re.escape(os.strerror(errno.EBADF))):
644 648
             agent.recv(100)
645 649
 
646
-    def test_no_recv_without_sendall(self) -> None:
650
+    def test_no_recv_without_sendall(
651
+        self,
652
+    ) -> None:
647 653
         """The agent requires a message before sending a response."""
648 654
         with self._get_agent(extended_agent=None) as agent:  # noqa: SIM117
649 655
             with pytest.raises(
... ...
@@ -669,7 +675,10 @@ class TestStubbedSSHAgentSocketProperOperations(TestStubbedSSHAgentSocket):
669 675
             b"query",
670 676
         ]
671 677
     )
672
-    def test_piecemeal_sendall(self, query_request_parts: list[bytes]) -> None:
678
+    def test_piecemeal_sendall(
679
+        self,
680
+        query_request_parts: list[bytes],
681
+    ) -> None:
673 682
         """The agent supports receiving messages incrementally."""
674 683
         with self._get_agent(extended_agent=None) as agent:
675 684
             agent.enabled_extensions = frozenset({"query"})
... ...
@@ -709,7 +718,10 @@ class TestStubbedSSHAgentSocketProperOperations(TestStubbedSSHAgentSocket):
709 718
 
710 719
     @hypothesis.given(message=Strategies.truncated_agent_request())
711 720
     @hypothesis.example(message=b"\x00\x00\x00\x0f\xff")
712
-    def test_truncated_ssh_agent_message(self, message: bytes) -> None:
721
+    def test_truncated_ssh_agent_message(
722
+        self,
723
+        message: bytes,
724
+    ) -> None:
713 725
         """The agent diagnoses a final truncated request message."""
714 726
         with pytest.raises(  # noqa: SIM117
715 727
             AssertionError,
716 728