Пример #1
0
    def setup_logger(self):
        """
        Setup test logger.
        It will also load (once) the test logging configuration.
        """
        logging.getLogger('%s.%s' % (__name__, 'Basic')).info('setup_logger()')

        company.package.logging.load_configuration(LOGGING_CONFIG_FILE)

        self.logger = logging.getLogger('%s.%s' % (__name__, self.__class__.__name__))
Пример #2
0
    def setup_logger(self):
        """
        Setup test logger.
        It will also load (once) the test logging configuration.
        """
        logging.getLogger('%s.%s' % (__name__, 'Basic')).info('setup_logger()')

        company.package.logging.load_configuration(LOGGING_CONFIG_FILE)

        self.logger = logging.getLogger('%s.%s' %
                                        (__name__, self.__class__.__name__))
Пример #3
0
    def setup_configuration(self):
        """
        Setup test configuration.
        It will also load (once) the test configuration.
        """
        logging.getLogger('%s.%s' % (__name__, 'Basic')).info('setup_configuration()')

        company.package.config.reset()
        company.package.config.load_configuration(PACKAGE_CONFIG_FILE)

        self.configuration = company.package.config.get()
Пример #4
0
    def setup_configuration(self):
        """
        Setup test configuration.
        It will also load (once) the test configuration.
        """
        logging.getLogger('%s.%s' %
                          (__name__, 'Basic')).info('setup_configuration()')

        company.package.config.reset()
        company.package.config.load_configuration(PACKAGE_CONFIG_FILE)

        self.configuration = company.package.config.get()