@@ -90,7 +90,8 @@ def test_clear_stories_clears_relations(self):
9090
9191 def test_update_character (self ):
9292 char = char_service .create_character (self .dummy_character_stats , 1 )
93- stats = ("f" , "22/12/2023" , "" , "170" , "" , "bald head blue eyes" , "" , "" , "" , "Dummella" , char )
93+ stats = ("f" , "22/12/2023" , "" , "170" , "" ,
94+ "bald head blue eyes" , "" , "" , "" , "Dummella" , char )
9495 edited = Character (
9596 char_id = 1 ,
9697 story_id = 1 ,
@@ -118,20 +119,25 @@ def test_update_character(self):
118119 def test_delete_twosided_relation (self ):
119120 char1 = char_service .create_character (self .dummy_character_stats , 1 )
120121 char2 = char_service .create_character (self .dummy_character_stats , 1 )
121- char_service .set_relations (char1 = char1 , char2 = char2 , relation = "parent" , former = 0 )
122- char_service .delete_relation (char1_id = char2 .char_id , char2_id = char1 .char_id , rel_id = 2 , two_sided = 1 , counterpart = 1 )
122+ char_service .set_relations (
123+ char1 = char1 , char2 = char2 , relation = "parent" , former = 0 )
124+ char_service .delete_relation (
125+ char1_id = char2 .char_id , char2_id = char1 .char_id , rel_id = 2 , two_sided = 1 , counterpart = 1 )
123126 res = char_service .get_character_relations (char1 )
124127
125128 self .assertEqual (res , None )
126129
127130 def test_delete_single_story_deletes_relations (self ):
128131 char1 = char_service .create_character (self .dummy_character_stats , 1 )
129132 char2 = char_service .create_character (self .dummy_character_stats , 1 )
130- char_service .set_relations (char1 = char1 , char2 = char2 , relation = "parent" , former = 0 )
133+ char_service .set_relations (
134+ char1 = char1 , char2 = char2 , relation = "parent" , former = 0 )
131135 story_service .delete_story (1 )
132136 story = story_service .create_story (name = "Dummy Story" )
133- char3 = char_service .create_character (self .dummy_character_stats , story_id = story .story_id )
134- char_service .create_character (self .dummy_character_stats , story_id = story .story_id )
137+ char3 = char_service .create_character (
138+ self .dummy_character_stats , story_id = story .story_id )
139+ char_service .create_character (
140+ self .dummy_character_stats , story_id = story .story_id )
135141 res = char_service .get_character_relations (char3 )
136142
137143 self .assertEqual (res , None )
@@ -146,4 +152,4 @@ def test_format_character_stats(self):
146152 self .assertEqual (age , "23" )
147153 self .assertEqual (bday , "24/12" )
148154 self .assertEqual (height , "170 cm" )
149- self .assertEqual (weight , "60 kg" )
155+ self .assertEqual (weight , "60 kg" )
0 commit comments