File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 2525
2626# ------------------------------------------------------------------------------
2727
28+
2829class Argument (BaseModel ):
2930 name : str
3031 value : int
@@ -46,7 +47,7 @@ def handler(arg):
4647 response = "{} answered {}" .format (arg .name , arg .value ),
4748 value = arg .value ,
4849 universal_answer = arg .value == 42 ,
49- argument = arg
50+ argument = arg ,
5051 )
5152
5253
@@ -61,7 +62,7 @@ class PydanticTests(unittest.TestCase):
6162 """
6263
6364 def test_all_pydantic (self ):
64- """ Test with valid data """
65+ """Test with valid data"""
6566 # Prepare the server
6667 srv = SimpleJSONRPCServer ((HOST , 0 ))
6768 srv .register_function (handler , "test" )
@@ -99,7 +100,7 @@ def test_invalid(self):
99100 """
100101 Test Pydantic when the client uses an invalid value
101102 """
102- # Prepare the server
103+ # Prepare the server
103104 srv = SimpleJSONRPCServer ((HOST , 0 ))
104105 srv .register_function (handler , "test" )
105106
You can’t perform that action at this time.
0 commit comments