From b7ad77dcc0a4340cfce4145af2ee797d80fae32a Mon Sep 17 00:00:00 2001 From: Alan Nichol Date: Mon, 25 Sep 2023 12:36:50 +0200 Subject: [PATCH] fix some paths --- tests/core/conftest.py | 8 ++++---- tests/core/policies/test_rule_policy.py | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/core/conftest.py b/tests/core/conftest.py index ff69c4acec19..1da3c380e10d 100644 --- a/tests/core/conftest.py +++ b/tests/core/conftest.py @@ -135,11 +135,11 @@ def default_tracker(domain: Domain) -> DialogueStateTracker: @pytest.fixture(scope="session") async def trained_formbot(trained_async: Callable) -> Text: return await trained_async( - domain="examples/formbot/domain.yml", - config="examples/formbot/config.yml", + domain="examples/nlu_based/formbot/domain.yml", + config="examples/nlu_based/formbot/config.yml", training_files=[ - "examples/formbot/data/rules.yml", - "examples/formbot/data/stories.yml", + "examples/nlu_based/formbot/data/rules.yml", + "examples/nlu_based/formbot/data/stories.yml", ], ) diff --git a/tests/core/policies/test_rule_policy.py b/tests/core/policies/test_rule_policy.py index 945a6717a826..9fa5cdee415c 100644 --- a/tests/core/policies/test_rule_policy.py +++ b/tests/core/policies/test_rule_policy.py @@ -758,7 +758,7 @@ def test_rule_policy_finetune( ) original_data = training.load_data( - "examples/rules/data/rules.yml", trained_rule_policy_domain + "examples/nlu_based/rules/data/rules.yml", trained_rule_policy_domain ) loaded_policy.train(original_data + [new_rule], trained_rule_policy_domain) @@ -805,7 +805,7 @@ def test_rule_policy_contradicting_rule_finetune( ) original_data = training.load_data( - "examples/rules/data/rules.yml", trained_rule_policy_domain + "examples/nlu_based/rules/data/rules.yml", trained_rule_policy_domain ) with pytest.raises(InvalidRule) as execinfo: @@ -1847,7 +1847,7 @@ def test_immediate_submit(policy: RulePolicy): @pytest.fixture() def trained_rule_policy_domain() -> Domain: - return Domain.load("examples/rules/domain.yml") + return Domain.load("examples/nlu_based/rules/domain.yml") @pytest.fixture() @@ -1855,7 +1855,7 @@ def trained_rule_policy( trained_rule_policy_domain: Domain, policy: RulePolicy ) -> RulePolicy: trackers = training.load_data( - "examples/rules/data/rules.yml", trained_rule_policy_domain + "examples/nlu_based/rules/data/rules.yml", trained_rule_policy_domain ) policy.train(trackers, trained_rule_policy_domain)