@@ -142,18 +142,18 @@ def load_file(serialized_file):
142142
143143 # Confirm Matches
144144 match = test ['match' ] if 'match' in test else True
145- print ("Expected: Watch Condition: %s" % match )
145+ print ("Expected: Watch Condition: {}" . format ( match ) )
146146 if 'condition' not in response ['watch_record' ]['result' ]:
147147 print ("Condition not evaluated due to watch error: {}" .format (
148148 json .dumps (response ['watch_record' ], sort_keys = True , indent = 2 )
149149 ))
150150 print ("TEST FAIL" )
151151 sys .exit (1 )
152152 met = response ['watch_record' ]['result' ]['condition' ]['met' ]
153- print ("Received: Watch Condition: %s" % met )
153+ print ("Received: Watch Condition: {}" . format ( met ) )
154154 if match :
155155 if met and response ['watch_record' ]['result' ]['condition' ]['status' ] == "success" :
156- print ("Expected: %s" % test .get ('expected_response' ))
156+ print ("Expected: {}" . format ( test .get ('expected_response' ) ))
157157 if len (response ['watch_record' ]['result' ]['actions' ]) == 0 :
158158 if response ['watch_record' ]['result' ]['transform' ]['status' ] == 'failure' :
159159 print ("No actions where taken because transform failed: {}" .format (
@@ -183,7 +183,7 @@ def load_file(serialized_file):
183183 sys .exit (1 )
184184 logging = logging_action ['logging' ]
185185 if logging :
186- print ("Received: %s" % logging ['logged_text' ])
186+ print ("Received: {}" . format ( logging ['logged_text' ]) )
187187 if logging ['logged_text' ] == test .get ('expected_response' ):
188188 print ("TEST PASS" )
189189 sys .exit (0 )
@@ -192,5 +192,5 @@ def load_file(serialized_file):
192192 print ("TEST FAIL" )
193193 sys .exit (1 )
194194 else :
195- print ("TEST %s" % ("FAIL" if response ['watch_record' ]['result' ]['condition' ]['met' ] else "PASS" ))
195+ print ("TEST {}" . format ("FAIL" if response ['watch_record' ]['result' ]['condition' ]['met' ] else "PASS" ))
196196 sys .exit (met )
0 commit comments