Testing how to remove blocks from an existing msg

This commit is contained in:
Jacob Henry 2019-03-03 20:32:33 -05:00
parent feb272aeb1
commit feafb6c9a9
2 changed files with 2 additions and 2 deletions

View File

@ -266,7 +266,7 @@ class ClientWrapper(object):
raise ValueError("Can't broadcast a non-threaded message. Try again.")
# Set blocks iff provided.
if blocks:
if blocks is not None:
kwargs["blocks"] = blocks
return self.api_call(api_method, **kwargs)

View File

@ -190,7 +190,7 @@ class TestPassive(hooks.Passive):
client.get_slack().edit_message(response, event.conversation.conversation_id, event.message.ts, None)
def on_expire():
client.get_slack().edit_message("Timed out", "#botzone", msg_ts, None)
client.get_slack().edit_message("Timed out", "#botzone", msg_ts, [])
# Add a listener
listener = hooks.InteractionListener(on_click,