示例#1
0
def setup_log_csv_file():
    """ Returns an open log file object

    Returns
    -------
    pyrate.repositories.file.FileRepository

    """
    log_path = make_temporary_file()
    log_options = {'path': log_path,
                   'extensions': '.csv',
                   'unzip': False,
                   'recursive': False}
    return file.load(log_options, readonly=False)
示例#2
0
def setup_input_csv_file():
    """ Returns an open input file object

    Returns
    -------
    pyrate.repositories.file.FileRepository

    """
    input_path = generate_test_input_data()
    input_options = {'path': input_path,
                     'extensions': '.csv',
                     'unzip': False,
                     'recursive': False}
    return file.load(input_options, readonly=True)