def tracking_config_force_true(): # Enforce "tracking" config section so that changes in config files won't affect tests config.set( "tracking", "value_reporting_strategy", ValueTrackingLevel.ALL, priority=ConfigValuePriority.OVERRIDE, ) config.set("tracking", "log_value_stats", True, priority=ConfigValuePriority.OVERRIDE) config.set("tracking", "log_histograms", True, priority=ConfigValuePriority.OVERRIDE) return TrackingConfig()
def tracking_config_force_false(): # Enforce "tracking" config section so that changes in config files won't affect tests config.set("tracking", "log_value_stats", False, override=True) config.set("tracking", "log_histograms", False, override=True) return TrackingConfig()
from dbnd import config from dbnd.tasks.basics import dbnd_sanity_check if __name__ == "__main__": config.set("databand", "env", "gcp_k8s") dbnd_sanity_check.dbnd_run()