Skip to content
This repository has been archived by the owner on Apr 28, 2021. It is now read-only.

Commit

Permalink
fix: don't collect form in botfront if it's a regression test run
Browse files Browse the repository at this point in the history
  • Loading branch information
Philippe Cote-Boucher committed Jan 15, 2021
1 parent 2b5f427 commit e8ee72e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rasa_addons/core/actions/action_botfront_form.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ async def submit(
)
if template:
events += [create_bot_utterance(template)]
if collect_in_botfront:
is_test_run = tracker.sender_id.startswith("bot_regression_test")
if collect_in_botfront and not is_test_run:
submit_form_to_botfront(tracker)
return events

Expand Down

0 comments on commit e8ee72e

Please sign in to comment.