Skip to content

Commit

Permalink
replace user warning with logging, fix cli test
Browse files Browse the repository at this point in the history
  • Loading branch information
ancalita committed Sep 25, 2023
1 parent 008a6e9 commit 56bd648
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions rasa/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -604,8 +604,8 @@ def verify_predicates(self) -> bool:
def verify_flows_structure(self) -> bool:
"""Checks if the flows structure is valid."""
if self.flows.is_empty():
rasa.shared.utils.io.raise_warning(
"No flows were found in the data files."
logger.warning(
"No flows were found in the data files. "
"Will not proceed with flow validation.",
)
return True
Expand Down
2 changes: 1 addition & 1 deletion tests/cli/test_rasa_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def test_data_validate_help(run: Callable[..., RunResult]):
[--max-history MAX_HISTORY] [-c CONFIG]
[--fail-on-warnings] [-d DOMAIN]
[--data DATA [DATA ...]]
{{stories}} ..."""
{{stories,flows}} ..."""

lines = help_text.split("\n")
# expected help text lines should appear somewhere in the output
Expand Down

0 comments on commit 56bd648

Please sign in to comment.