Skip to content

Commit

Permalink
fix more paths
Browse files Browse the repository at this point in the history
  • Loading branch information
amn41 committed Sep 25, 2023
1 parent b7ad77d commit 708a65c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/dialogues.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions tests/graph_components/providers/test_rule_only_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Check failure on line 17 in tests/graph_components/providers/test_rule_only_provider.py

View workflow job for this annotation

GitHub Actions / Code Quality

E501 Line too long (94 > 88 characters)

policy = RulePolicy.create(
RulePolicy.get_default_config(),
Expand Down
2 changes: 1 addition & 1 deletion tests/shared/core/test_slot_mappings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down
2 changes: 1 addition & 1 deletion tests/test_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 708a65c

Please sign in to comment.