How to use the prom2teams.app.configuration function in prom2teams

To help you get started, we’ve selected a few prom2teams examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github idealista / prom2teams / tests / test_app_configuration.py View on Github external
def test_get_config_without_required_keys_should_raise_exception(self):
        empty_config_relative_path = self.TEST_CONFIG_FILES_PATH + 'empty_config.ini'

        self.assertRaises(exceptions.MissingConnectorConfigKeyException, configuration._config_provided,
                          empty_config_relative_path)
github idealista / prom2teams / tests / test_app_configuration.py View on Github external
def test_get_config_with_invalid_path(self):
        invalid_relative_path = self.TEST_CONFIG_FILES_PATH + 'invalid_path'
        self.assertRaises(FileNotFoundError, configuration._config_provided, invalid_relative_path)