Beispiel #1
0
 def test_writing_to_csv(self):
     logs = MachineLogs(self.logs_dir, recursive=False)
     files = logs.to_csv()
     self.assertIsInstance(files, list)
     # clean up by deleting files
     for file in files:
         os.remove(file)
Beispiel #2
0
 def test_writing_to_csv(self):
     logs = MachineLogs(self.logs_dir, recursive=False)
     files = logs.to_csv()
     self.assertIsInstance(files, list)
     # clean up by deleting files
     for file in files:
         os.remove(file)
Beispiel #3
0
 def test_writing_csv_with_no_logs(self):
     empty_dir = get_folder_from_cloud_test_repo(['mlc_logs', 'empty_dir'])
     logs = MachineLogs(empty_dir)
     logs.to_csv()  # shouldn't raise but will print a statement
Beispiel #4
0
 def test_writing_csv_with_no_logs(self):
     empty_dir = osp.join(self._logs_dir, 'empty_dir')
     logs = MachineLogs(empty_dir)
     logs.to_csv()  # shouldn't raise but will print a statement