From 708a65cee304f7827d38473052fa740369666ee4 Mon Sep 17 00:00:00 2001 From: Alan Nichol Date: Mon, 25 Sep 2023 12:44:15 +0200 Subject: [PATCH] fix more paths --- tests/dialogues.py | 2 +- .../providers/test_domain_for_core_training_provider.py | 2 +- tests/graph_components/providers/test_rule_only_provider.py | 4 ++-- tests/shared/core/test_slot_mappings.py | 2 +- tests/test_validator.py | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/dialogues.py b/tests/dialogues.py index 412326cc3baf..d2deefb3559c 100644 --- a/tests/dialogues.py +++ b/tests/dialogues.py @@ -272,6 +272,6 @@ TEST_DOMAINS_FOR_DIALOGUES = [ "data/test_domains/default_with_slots.yml", - "examples/formbot/domain.yml", + "examples/nlu_based/formbot/domain.yml", "data/test_moodbot/domain.yml", ] diff --git a/tests/graph_components/providers/test_domain_for_core_training_provider.py b/tests/graph_components/providers/test_domain_for_core_training_provider.py index 52e5b7eecb32..0f08ab6b921a 100644 --- a/tests/graph_components/providers/test_domain_for_core_training_provider.py +++ b/tests/graph_components/providers/test_domain_for_core_training_provider.py @@ -98,7 +98,7 @@ def test_train_core_with_original_or_provided_domain_and_compare( default_execution_context: ExecutionContext, ): # Choose an example where the provider will remove a lot of information: - example = Path("examples/formbot/") + example = Path("examples/nlu_based/formbot/") training_files = [example / "data" / "rules.yml"] # Choose a configuration with a policy diff --git a/tests/graph_components/providers/test_rule_only_provider.py b/tests/graph_components/providers/test_rule_only_provider.py index 98100f36a85c..d778f0d62096 100644 --- a/tests/graph_components/providers/test_rule_only_provider.py +++ b/tests/graph_components/providers/test_rule_only_provider.py @@ -13,8 +13,8 @@ def test_provide( ): resource = Resource("some resource") - domain = Domain.load("examples/rules/domain.yml") - trackers = rasa.core.training.load_data("examples/rules/data/rules.yml", domain) + domain = Domain.load("examples/nlu_based/rules/domain.yml") + trackers = rasa.core.training.load_data("examples/nlu_based/rules/data/rules.yml", domain) policy = RulePolicy.create( RulePolicy.get_default_config(), diff --git a/tests/shared/core/test_slot_mappings.py b/tests/shared/core/test_slot_mappings.py index 7e67f388b102..152620a225da 100644 --- a/tests/shared/core/test_slot_mappings.py +++ b/tests/shared/core/test_slot_mappings.py @@ -28,7 +28,7 @@ def test_slot_mapping_entity_is_desired(slot_name: Text, expected: bool): def test_slot_mapping_intent_is_desired(domain: Domain): - domain = Domain.from_file("examples/formbot/domain.yml") + domain = Domain.from_file("examples/nlu_based/formbot/domain.yml") tracker = DialogueStateTracker("sender_id_test", slots=domain.slots) event1 = UserUttered( text="I'd like to book a restaurant for 2 people.", diff --git a/tests/test_validator.py b/tests/test_validator.py index d901d73fb333..1e7e93b9098c 100644 --- a/tests/test_validator.py +++ b/tests/test_validator.py @@ -347,7 +347,7 @@ def test_early_exit_on_invalid_domain(): def test_verify_there_is_not_example_repetition_in_intents(): importer = RasaFileImporter( domain_path="data/test_moodbot/domain.yml", - training_data_paths=["examples/knowledgebasebot/data/nlu.yml"], + training_data_paths=["examples/nlu_based/knowledgebasebot/data/nlu.yml"], ) validator = Validator.from_importer(importer) # force validator to not ignore warnings (default is True)