Example #1
0
def do_grok(dotted_name, config, extra_exclude=None):
    if extra_exclude is not None:

        def exclude_filter(name):
            return skip_tests(name) or extra_exclude == name

    else:
        exclude_filter = skip_tests

    martian.grok_dotted_name(
        dotted_name, the_module_grokker, exclude_filter=exclude_filter,
        config=config)
Example #2
0
def do_grok(dotted_name, config, extra_exclude=None):
    if extra_exclude is not None:

        def exclude_filter(name):
            return skip_tests(name) or extra_exclude == name

    else:
        exclude_filter = skip_tests

    martian.grok_dotted_name(dotted_name,
                             the_module_grokker,
                             exclude_filter=exclude_filter,
                             config=config)
Example #3
0
def do_grok(dotted_name, config, extra_exclude=None):
    if extra_exclude is not None:

        def exclude_filter(name):
            if skip_tests(name):
                return True
            for exclude in extra_exclude:
                if fnmatch.fnmatch(name, exclude):
                    return True
            return False
    else:
        exclude_filter = skip_tests

    martian.grok_dotted_name(
        dotted_name, the_module_grokker, exclude_filter=exclude_filter,
        config=config)
Example #4
0
def do_grok(dotted_name, config, extra_exclude=None):
    if extra_exclude is not None:

        def exclude_filter(name):
            if grokcore.component.zcml.skip_tests(name):
                return True
            for exclude in extra_exclude:
                if fnmatch.fnmatch(name, exclude):
                    return True
            return False
    else:
        exclude_filter = grokcore.component.zcml.skip_tests

    martian.grok_dotted_name(dotted_name,
                             grokcore.component.zcml.the_module_grokker,
                             exclude_filter=exclude_filter,
                             config=config)
Example #5
0
def do_grok(dotted_name):
    global _bootstrapped
    if not _bootstrapped:
        bootstrap()
        _bootstrapped = True
    martian.grok_dotted_name(dotted_name, the_module_grokker)
Example #6
0
def do_grok(dotted_name, config):
    martian.grok_dotted_name(
        dotted_name, the_module_grokker, exclude_filter=skip_tests,
        config=config
        )