@@ -209,6 +209,16 @@ def test_delete_multi_species_output_file(self):
209209 self .assertFalse (os .path .isfile (os .path .join (ARC_PATH , 'arc' , 'testing' , 'acetylene.log' )))
210210 self .assertFalse (os .path .isfile (os .path .join (ARC_PATH , 'arc' , 'testing' , 'N-Valeric_Acid.log' )))
211211
212+ def test_save_irc_traj_animation (self ):
213+ """Test the save_irc_traj_animation function"""
214+ irc_f_path = os .path .join (ARC_PATH , 'arc' , 'testing' , 'irc' , 'rxn_1_irc_1.out' )
215+ irc_r_path = os .path .join (ARC_PATH , 'arc' , 'testing' , 'irc' , 'rxn_1_irc_2.out' )
216+ out_path = os .path .join (ARC_PATH , 'arc' , 'testing' , 'irc' , 'rxn_1_irc_animation.out' )
217+ self .assertFalse (os .path .isfile (out_path ))
218+ plotter .save_irc_traj_animation (irc_f_path , irc_r_path , out_path )
219+ self .assertTrue (os .path .isfile (out_path ))
220+
221+
212222 @classmethod
213223 def tearDownClass (cls ):
214224 """A function that is run ONCE after all unit tests in this class."""
@@ -218,7 +228,9 @@ def tearDownClass(cls):
218228 files_to_remove = [os .path .join (ARC_PATH , 'arc' , 'testing' , 'bde_report_test.txt' ),
219229 os .path .join (ARC_PATH , 'arc' , 'testing' , 'water.log' ),
220230 os .path .join (ARC_PATH , 'arc' , 'testing' , 'acetylene.log' ),
221- os .path .join (ARC_PATH , 'arc' , 'testing' , 'N-Valeric_Acid.log' ),]
231+ os .path .join (ARC_PATH , 'arc' , 'testing' , 'N-Valeric_Acid.log' ),
232+ os .path .join (ARC_PATH , 'arc' , 'testing' , 'irc' , 'rxn_1_irc_animation.out' ),
233+ ]
222234 for file_path in files_to_remove :
223235 if os .path .isfile (file_path ):
224236 os .remove (file_path )
0 commit comments