示例#1
0
def publisher_activity_combinations():
    for org in lib.all_organizations(include_none=False):
        for include_sub_organizations in (False, True):
            yield {
                'organization': org,
                'include_sub_organizations': include_sub_organizations
            }
示例#2
0
def publisher_resources_combinations():
    for organization in lib.all_organizations():
        for include_sub_organizations in (False, True):
            yield {
                'organization': organization,
                'include_sub_organizations': include_sub_organizations
            }
示例#3
0
def tagless_report_option_combinations():
    for organization in lib.all_organizations(include_none=True):
        for include_sub_organizations in (False, True):
            yield {
                'organization': organization,
                'include_sub_organizations': include_sub_organizations
            }
示例#4
0
def broken_links_option_combinations():
    for organization in lib.all_organizations(include_none=True):
        for include_sub_organizations in (False, True):
            yield {
                'organization': organization,
                'include_sub_organizations': include_sub_organizations
            }
示例#5
0
def licence_combinations():
    for organization in lib.all_organizations(include_none=True):
        for include_sub_organizations in (False, True):
            yield {
                'organization': organization,
                'include_sub_organizations': include_sub_organizations
            }
示例#6
0
def dataset_without_resources_report_option_combinations():
    for organization in lib.all_organizations(include_none=True):
        for include_sub_organizations in (False, True):
            yield {
                'organization': organization,
                'include_sub_organizations': include_sub_organizations
            }
def dataset_creation_combinations():
    """Return option combinations."""
    for organization in lib.all_organizations(include_none=True):
        for include_sub_organizations in (False, True):
            for include_private in (False, True):
                for include_draft in (False, True):
                    yield {
                        'organization': organization,
                        'include_sub_organizations': include_sub_organizations,
                        'include_private': include_private,
                        'include_draft': include_draft
                    }
示例#8
0
def dataset_creation_combinations():
    """Return option combinations."""
    for organization in lib.all_organizations(include_none=True):
        for include_sub_organizations in (False, True):
            for include_private in (False, True):
                for include_draft in (False, True):
                    yield {
                        'organization': organization,
                        'include_sub_organizations': include_sub_organizations,
                        'include_private': include_private,
                        'include_draft': include_draft
                    }
示例#9
0
def feedback_report_combinations():
    organization = None
    include_sub_organizations = True  # assumed for index anyway
    for include_published in (False, True):
        yield {'organization': organization,
               'include_sub_organizations': include_sub_organizations,
               'include_published': include_published}

    for organization in lib.all_organizations():
        for include_sub_organizations in (False, True):
            for include_published in (False, True):
                yield {'organization': organization,
                       'include_sub_organizations': include_sub_organizations,
                       'include_published': include_published}
示例#10
0
def feedback_report_combinations():
    organization = None
    include_sub_organizations = True  # assumed for index anyway
    for include_published in (False, True):
        yield {
            'organization': organization,
            'include_sub_organizations': include_sub_organizations,
            'include_published': include_published
        }

    for organization in lib.all_organizations():
        for include_sub_organizations in (False, True):
            for include_published in (False, True):
                yield {
                    'organization': organization,
                    'include_sub_organizations': include_sub_organizations,
                    'include_published': include_published
                }
示例#11
0
文件: reports.py 项目: tbalaz/test
def feedback_report_combinations():
    organization = None
    include_sub_organizations = True  # assumed for index anyway
    for include_published in (False, True):
        yield {
            "organization": organization,
            "include_sub_organizations": include_sub_organizations,
            "include_published": include_published,
        }

    for organization in lib.all_organizations():
        for include_sub_organizations in (False, True):
            for include_published in (False, True):
                yield {
                    "organization": organization,
                    "include_sub_organizations": include_sub_organizations,
                    "include_published": include_published,
                }
示例#12
0
def broken_links_option_combinations():
    for organization in lib.all_organizations(include_none=True):
        for include_sub_organizations in (False, True):
            yield {'organization': organization,
                   'include_sub_organizations': include_sub_organizations}
示例#13
0
def publisher_activity_combinations():
    for org in lib.all_organizations(include_none=False):
        for include_sub_organizations in (False, True):
            yield {'organization': org,
                   'include_sub_organizations': include_sub_organizations}
示例#14
0
def publisher_resources_combinations():
    for organization in lib.all_organizations():
        for include_sub_organizations in (False, True):
                yield {'organization': organization,
                       'include_sub_organizations': include_sub_organizations}
示例#15
0
def openness_report_combinations():
    for organization in lib.all_organizations(include_none=True):
        for include_sub_organizations in (False, True):
            yield {'organization': organization,
                   'include_sub_organizations': include_sub_organizations}
示例#16
0
def licence_combinations():
    for organization in lib.all_organizations(include_none=True):
        for include_sub_organizations in (False, True):
                yield {'organization': organization,
                       'include_sub_organizations': include_sub_organizations}