Skip to content

Commit

Permalink
fix some paths
Browse files Browse the repository at this point in the history
  • Loading branch information
amn41 committed Sep 25, 2023
1 parent 40b41ee commit b7ad77d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions tests/core/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
],
)

Expand Down
8 changes: 4 additions & 4 deletions tests/core/policies/test_rule_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -1847,15 +1847,15 @@ 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()
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)
Expand Down

0 comments on commit b7ad77d

Please sign in to comment.