def init_crypt(self, *args, **kwargs) -> None: """ Set the Attributes of all service defined in config.yml and exists in `pyms.flask.service` module :return: None """ crypt_object = CryptResource(*args, **kwargs) self.crypt = crypt_object
def test_encrypt_conf(self, mock_aws_decrypt, mock_init_boto): mock_aws_decrypt.return_value = "http://database-url" crypt = CryptResource() config = get_conf(service=CONFIG_BASE, uppercase=True, crypt=crypt) assert config.encrypted_key == "http://database-url"