Beispiel #1
0
def ds_without_range():
    return OneDriveDataSource(
        name='test_name',
        domain='test_domain',
        file='test_file',
        sheet='test_sheet',
    )
Beispiel #2
0
def ds_with_table():
    return OneDriveDataSource(
        name='test_name',
        domain='test_domain',
        file='test_file',
        table='test_table',
    )
Beispiel #3
0
def ds_error_sheet_and_table():
    return OneDriveDataSource(
        name='test_name',
        domain='test_domain',
        sheet='test_sheet',
        table='test_table',
    )
Beispiel #4
0
def ds_error_range_and_table():
    return OneDriveDataSource(
        name='test_name',
        domain='test_domain',
        range='A2:B3',
        table='test_table',
    )
Beispiel #5
0
def ds_with_multiple_tables():
    return OneDriveDataSource(
        name='test_name',
        domain='test_domain',
        file='test_file',
        table='table1, table2',
    )
Beispiel #6
0
def ds_with_multiple_sheets():
    return OneDriveDataSource(
        name='test_name',
        domain='test_domain',
        file='test_file',
        sheet='sheet1, sheet2',
        range='A2:B3',
    )
Beispiel #7
0
def ds():
    return OneDriveDataSource(
        name='test_name',
        domain='test_domain',
        file='test_file',
        sheet='test_sheet',
        range='A2:B3',
    )
Beispiel #8
0
def ds_error_with_dates():
    return OneDriveDataSource(
        name='test_name',
        domain='test_domain',
        file='test_file',
        sheet='test_sheet',
        parse_dates=['col_text'],
    )
Beispiel #9
0
def ds_with_dates():
    return OneDriveDataSource(
        name='test_name',
        domain='test_domain',
        file='test_file',
        sheet='test_sheet',
        parse_dates=['col_datetime', 'col_datetime_bis'],
    )
Beispiel #10
0
def ds_with_site_without_range():
    return OneDriveDataSource(
        name='test_name',
        domain='test_domain',
        file='test_file',
        sheet='test_sheet',
        site_url='company_name.sharepoint.com/sites/site_name',
        document_library='Documents',
    )
Beispiel #11
0
def ds_with_site_sheme():
    return OneDriveDataSource(
        name='test_name',
        domain='test_domain',
        file='test_file',
        sheet='test_sheet',
        range='A2:B3',
        site_url='https://company_name.sharepoint.com/sites/site_name/',
        document_library='Documents',
    )
Beispiel #12
0
def ds_with_site_with_file_regex_pattern():
    return OneDriveDataSource(
        name='test_name',
        domain='test_domain',
        match=True,
        file=r'.*\.jpg',
        sheet='test_sheet, other_sheet',
        range='A2:B3',
        site_url='company_name.sharepoint.com/sites/site_name',
        document_library='Documents',
    )
Beispiel #13
0
def ds_error_no_sheet_no_table():
    return OneDriveDataSource(
        name='test_name',
        domain='test_domain',
    )