From 6be73fe586a0370d627a7b33af958252dec06c36 Mon Sep 17 00:00:00 2001 From: Tobias Wochinger Date: Mon, 8 Jun 2020 16:17:02 +0200 Subject: [PATCH] rename to `loops` (plural) --- rasa/core/actions/forms.py | 2 +- rasa/core/actions/{loop.py => loops.py} | 0 rasa/core/actions/two_stage_fallback.py | 2 +- tests/core/actions/{test_loop.py => test_loops.py} | 3 ++- 4 files changed, 4 insertions(+), 3 deletions(-) rename rasa/core/actions/{loop.py => loops.py} (100%) rename tests/core/actions/{test_loop.py => test_loops.py} (98%) diff --git a/rasa/core/actions/forms.py b/rasa/core/actions/forms.py index e5e369f9e3b0..2d21744d0882 100644 --- a/rasa/core/actions/forms.py +++ b/rasa/core/actions/forms.py @@ -2,7 +2,7 @@ import logging from rasa.core.actions import action -from rasa.core.actions.loop import LoopAction +from rasa.core.actions.loops import LoopAction from rasa.core.channels import OutputChannel from rasa.core.domain import Domain diff --git a/rasa/core/actions/loop.py b/rasa/core/actions/loops.py similarity index 100% rename from rasa/core/actions/loop.py rename to rasa/core/actions/loops.py diff --git a/rasa/core/actions/two_stage_fallback.py b/rasa/core/actions/two_stage_fallback.py index f833816b64a1..3b93d3b69674 100644 --- a/rasa/core/actions/two_stage_fallback.py +++ b/rasa/core/actions/two_stage_fallback.py @@ -10,7 +10,7 @@ ACTION_DEFAULT_FALLBACK_NAME, ACTION_DEFAULT_ASK_REPHRASE_NAME, ) -from rasa.core.actions.loop import LoopAction +from rasa.core.actions.loops import LoopAction from rasa.core.channels import OutputChannel from rasa.core.constants import USER_INTENT_OUT_OF_SCOPE from rasa.core.domain import Domain diff --git a/tests/core/actions/test_loop.py b/tests/core/actions/test_loops.py similarity index 98% rename from tests/core/actions/test_loop.py rename to tests/core/actions/test_loops.py index a361ec2524ab..08677ed5400e 100644 --- a/tests/core/actions/test_loop.py +++ b/tests/core/actions/test_loops.py @@ -1,6 +1,7 @@ from typing import List, Any, Text -from rasa.core.actions.loop import LoopAction +import pytest +from rasa.core.actions.loops import LoopAction from rasa.core.channels import CollectingOutputChannel from rasa.core.domain import Domain from rasa.core.events import (