@@ -148,3 +148,36 @@ def test_rasa_validate_quiet_no_errors(
148148 "you can use `rasa telemetry disable`." in output_text
149149 assert "To learn more, check out"
150150 "https://rasa.com/docs/rasa/telemetry/telemetry." in output_text
151+
152+
153+ def test_rasa_validate_null_active_loop_no_errors (
154+ run : Callable [..., RunResult ], request : FixtureRequest
155+ ):
156+ # Test captures the subprocess output for the command run
157+ # and validates that the data in 'data/test/test_integration' throws no cli errors
158+
159+ test_data_dir = Path (request .config .rootdir , "data" , "test" , "test_integration" )
160+ test_config_dir = Path (request .config .rootdir , "data" , "test_config" )
161+ source_file = (test_data_dir / "data" ).absolute ()
162+ domain_file = (test_data_dir / "domain.yml" ).absolute ()
163+ config_file = (test_config_dir / "config_unique_assistant_id.yml" ).absolute ()
164+ result = run (
165+ "data" ,
166+ "validate" ,
167+ "--data" ,
168+ str (source_file ),
169+ "-d" ,
170+ str (domain_file ),
171+ "-c" ,
172+ str (config_file ),
173+ )
174+ assert result .ret == 0
175+
176+ stderr_text = str (result .stderr )
177+ assert "INFO" in stderr_text
178+ assert "Validating intents..." in stderr_text
179+ assert "Validating utterances..." in stderr_text
180+ assert "Story structure validation..." in stderr_text
181+ assert "Validating utterances..." in stderr_text
182+ assert "Considering all preceding turns for conflict analysis." in stderr_text
183+ assert "No story structure conflicts found." in stderr_text
0 commit comments