Пример #1
0
 def execute(event: Dict[str, str], context):
     logger.info("Starting service")
     data: Dict[str, str] = Funcs.decode(event.get("data"))
     attrs: Dict[str, str] = event.get("attributes")
     sf: SalesforceBroker = SalesforceBroker()
     sf.handle(data)
Пример #2
0
def test_decode_dict():
    assert {
        "app": "brandenburg"
    } == Funcs.decode("eyJhcHAiOiJicmFuZGVuYnVyZyJ9")
Пример #3
0
def test_not_b64_string():
    assert "abc123" == Funcs.decode("abc123")
Пример #4
0
def test_decode_string():
    assert "brandenburg" == Funcs.decode("YnJhbmRlbmJ1cmc=")