@@ -119,14 +119,6 @@ def test_call_nonexistent_function():
119119 assert "failed" in str (exc_info .value ).lower ()
120120
121121
122- class Creature (Protocol ):
123- """Test protocol for proxy testing."""
124-
125- def walk (self , speed : int ) -> str : ...
126- def fly (self , speed : int , height : int ) -> bool : ...
127- def dive (self , depth : float ) -> str : ...
128-
129-
130122def test_proxy ():
131123 """Test Service.proxy functionality."""
132124 env = appose .system ()
@@ -163,7 +155,7 @@ def walk(self, rate):
163155 assert_complete (setup )
164156
165157 # Validate bird behavior
166- bird = service .proxy ("bird" , Creature )
158+ bird = service .proxy ("bird" )
167159 assert bird .walk (1 ) == "Hopped at rate: 1"
168160 assert bird .walk (2 ) == "Too fast for birds!"
169161 assert bird .fly (5 , 100 ) is True
@@ -173,7 +165,7 @@ def walk(self, rate):
173165 assert bird .dive (3 ) == "Too deep for birds!"
174166
175167 # Validate fish behavior
176- fish = service .proxy ("fish" , Creature )
168+ fish = service .proxy ("fish" )
177169 assert fish .walk (1 ) == "Nope! Only the Darwin fish can do that."
178170 assert fish .fly (2 , 4 ) is True
179171 assert fish .fly (2 , 10 ) is False
0 commit comments