def test_inventory_generation():
    paths.local_path = ((paths.local_path + '_') + STEWI_VERSION)
    error_list = []
    for inventory in config()['databases']:
        if (inventory in ['RCRAInfo']):
            continue
        df = stewi.getInventory(inventory, year)
        error = (df is None)
        if (not error):
            error = (len(df) == 0)
        if error:
            error_list.append(inventory)
    assert (len(error_list) == 0), f"Generation of {','.join(error_list)} unsuccessful"
def test_inventory_generation():
    paths.local_path = ((paths.local_path + '_') + STEWI_VERSION)
    error_list = []
    for inventory in config()['databases']:
        if (inventory in ['RCRAInfo']):
            continue
        df = stewi.getInventory(inventory, year)
        error = (df is None)
        if (not error):
            error = (len(df) == 0)
        if error:
            error_list.append(inventory)
    assert (len(error_list) == 0), f"Generation of {','.join(error_list)} unsuccessful"