src/dirbs/importer/abstract_importer.py
def _validate_binary_checks(self):
        """Method to validate staging data prior to import. By default does nothing."""
        self._logger.info('Running binary validation checks on staging table data...')
        for result, msg, metric_key in self._binary_validation_checks:
            if not result:
                raise exceptions.ValidationCheckException(msg,
                                                          metric_key=metric_key,
                                                          statsd=self._statsd,
                                                          metrics_failures_root=self._metrics_failures_root)
            else:
                self._logger.info(msg)
        self._logger.info('Finished running binary validation checks on staging table data')
Method to validate staging data prior to import. By default does nothing.
Method to validate staging data prior to import. By default does nothing.
Method to validate staging data prior to import . By default does nothing .
def _validate_binary_checks(self):
        self._logger.info('Running binary validation checks on staging table data...')
        for result, msg, metric_key in self._binary_validation_checks:
            if not result:
                raise exceptions.ValidationCheckException(msg,
                                                          metric_key=metric_key,
                                                          statsd=self._statsd,
                                                          metrics_failures_root=self._metrics_failures_root)
            else:
                self._logger.info(msg)
        self._logger.info('Finished running binary validation checks on staging table data')
def _validate_binary_checks ( self ) : self . _logger . info ( 'Running binary validation checks on staging table data...' ) for result , msg , metric_key in self . _binary_validation_checks : if not result : raise exceptions . ValidationCheckException ( msg , metric_key = metric_key , statsd = self . _statsd , metrics_failures_root = self . _metrics_failures_root ) else : self . _logger . info ( msg ) self . _logger . info ( 'Finished running binary validation checks on staging table data' )
Method to validate staging data prior to import.
Method to validate staging data prior to import .
"""Method to validate staging data prior to import. By default does nothing."""
self