tests/contrib/vertica/utils.py
def override_config(custom_conf):
    """Overrides the vertica configuration and reinstalls the previous
    afterwards."""
    from ddtrace import config

    def provide_config(func):
        def wrapper(*args, **kwargs):
            orig = deepcopy(config.vertica)
            merge(config.vertica, custom_conf)
            r = func(*args, **kwargs)
            config._add("vertica", orig)
            return r

        return wrapper

    return provide_config
Overrides the vertica configuration and reinstalls the previous
    afterwards.
Overrides the vertica configuration and reinstalls the previous
afterwards.
Overrides the vertica configuration and reinstalls the previous afterwards .
def override_config(custom_conf):
    from ddtrace import config
    def provide_config(func):
        def wrapper(*args, **kwargs):
            orig = deepcopy(config.vertica)
            merge(config.vertica, custom_conf)
            r = func(*args, **kwargs)
            config._add("vertica", orig)
            return r
        return wrapper
    return provide_config
def override_config ( custom_conf ) : from ddtrace import config def provide_config ( func ) : def wrapper ( * args , ** kwargs ) : orig = deepcopy ( config . vertica ) merge ( config . vertica , custom_conf ) r = func ( * args , ** kwargs ) config . _add ( "vertica" , orig ) return r return wrapper return provide_config
Overrides the vertica configuration and reinstalls the previous
afterwards.
Overrides the vertica configuration and reinstalls the previous afterwards .
"""Overrides the vertica configuration and reinstalls the previous
    afterwards."""
custom_conf