"""Lambda test module.""" from src import app as index def test_handler(mocker): """Test handler function.""" mocker.patch.object(index, 'get_product_metadata') mocker.patch.object(index, 'compress_payload') result = index.handler({'product_id': '12345678'}, None) assert result.get('status') == 'OK' assert result.get('retries') >= 0