def test_log_upload(session_setup, module_setup): logger_init(os.path.join(get_data_root(), 'log')) app_data_folder = write_preferences('testnode', get_test_upload_root(), 'test_key') latus.logger.set_appdata_folder(app_data_folder) latus.logger.set_console_log_level(logging.INFO) latus.logger.log.error('test_upload_error_message')
def get_move_root(): return os.path.join(get_data_root(), "test_move")
def get_simple_root(): return os.path.join(get_data_root(), "test_simple")
def get_subdir_root(): return os.path.join(get_data_root(), "subdir")
def get_sequential_root(): return os.path.join(get_data_root(), "test_sequential")
def get_node_db_retries_root(): retries_root = os.path.join(get_data_root(), 'temp') if not os.path.exists(retries_root): os.makedirs(retries_root) return retries_root
def get_start_first_root(): return os.path.join(get_data_root(), "start_first")
def get_move_into_latus_root(): return os.path.join(get_data_root(), test_name)
def get_test_upload_root(): return os.path.join(get_data_root(), "test_upload")
def get_delete_root(): return os.path.join(get_data_root(), "delete")
def get_move_out_of_latus_root(): return os.path.join(get_data_root(), "move_out_of_latus")
def test_log_upload(): logger_init(os.path.join(get_data_root(), 'log')) app_data_folder = write_preferences('testnode', get_test_upload_root(), 'test_key') latus.logger.set_appdata_folder(app_data_folder) latus.logger.set_console_log_level(logging.INFO) latus.logger.log.error('test_upload_error_message')
def get_create_modify_delete_root(): return os.path.join(get_data_root(), "test_create_modify_delete")
def get_move_into_latus_root(): return os.path.join(get_data_root(), "move_into_latus")
def get_gui_preferences_root(): return os.path.join(get_data_root(), "test_gui_preferences")