Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation tests using yaml #6457

Merged
merged 42 commits into from
Aug 27, 2020
Merged
Show file tree
Hide file tree
Changes from 40 commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
c89ee03
Create conversation_tests.yml
tmbo Aug 17, 2020
c1d3d30
Merge branch 'master' into conversation-tests
tmbo Aug 19, 2020
2c1d6e1
implement conversation tests using the new yml format
tmbo Aug 19, 2020
919864e
fixed linter issues
tmbo Aug 20, 2020
ae13dab
renamed test_conversatiosn to stories
tmbo Aug 20, 2020
87fcfdb
fixed story reader detection
tmbo Aug 21, 2020
e9586cf
fixed remaining tests
tmbo Aug 21, 2020
1cf5cca
fixed type error
tmbo Aug 21, 2020
4f1567d
fixed some smaller style issues
tmbo Aug 24, 2020
08e90f2
Merge branch 'master' into conversation-tests
tmbo Aug 24, 2020
ab208e5
added documentation
tmbo Aug 24, 2020
2f08a51
style improvements
tmbo Aug 25, 2020
3aae77f
Update rasa/core/training/story_reader/markdown_story_reader.py
tmbo Aug 25, 2020
a1f8d67
adressed review comments (and linter error)
tmbo Aug 25, 2020
7b5697e
Merge branch 'conversation-tests' of github.com:RasaHQ/rasa into conv…
tmbo Aug 25, 2020
e231f06
added changelog item
tmbo Aug 25, 2020
ce23659
Merge branch 'master' into conversation-tests
tmbo Aug 25, 2020
6c85cc1
fixed failing tests
tmbo Aug 25, 2020
0bad210
added tests
tmbo Aug 25, 2020
daf63bb
fixed linting
tmbo Aug 25, 2020
7b6de19
fixed classification test
tmbo Aug 26, 2020
25499c1
fixed some more style errors deepsource found
tmbo Aug 26, 2020
ab3cb49
fixed some more deepsource issues
tmbo Aug 26, 2020
b5b3628
Merge branch 'master' into conversation-tests
tmbo Aug 26, 2020
947ada2
fixed some more deepsource issues...
tmbo Aug 26, 2020
e76ab64
Autofix issues in 1 files
deepsource-autofix[bot] Aug 26, 2020
27d8bfa
added comments for public funcionts
tmbo Aug 26, 2020
3d18247
Merge branch 'conversation-tests' of github.com:RasaHQ/rasa into conv…
tmbo Aug 26, 2020
d483fbf
trying to fix tests
tmbo Aug 26, 2020
0765c7a
merged master
tmbo Aug 26, 2020
2b73ba9
fixed server tests
tmbo Aug 26, 2020
de9be86
Apply suggestions from code review
tmbo Aug 26, 2020
ecaa5fc
adressed review comments
tmbo Aug 26, 2020
c2f4e35
Merge branch 'conversation-tests' of github.com:RasaHQ/rasa into conv…
tmbo Aug 26, 2020
58ec1d3
renamed files to stay in test stories naming convention
tmbo Aug 26, 2020
5d98ab0
removed trailing whitespace
tmbo Aug 26, 2020
a13b422
fixed shitty tests
tmbo Aug 26, 2020
e9f419a
added default argument
tmbo Aug 26, 2020
c95937b
Update test_multi_project.py
tmbo Aug 26, 2020
824d862
fixed windows errors
tmbo Aug 27, 2020
691ddb2
trying to fix escaping issues
tmbo Aug 27, 2020
ccb5f34
fixed linter
tmbo Aug 27, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog/6457.improvement.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Support for test stories written in yaml format.
2 changes: 2 additions & 0 deletions data/test_dialogues/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
"confidence": 0.0,
"name": "greet"
},
"message_id": null,
"metadata": {},
"text": "Hi my name is Peter"
},
"text": "Hi my name is Peter",
Expand Down
3 changes: 0 additions & 3 deletions data/test_endpoints/event_brokers/file_endpoint.yml

This file was deleted.

9 changes: 1 addition & 8 deletions data/test_multi_domain/config.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
language: en

pipeline:
- name: SpacyNLP
- name: SpacyTokenizer
- name: SpacyFeaturizer
- name: RegexFeaturizer
- name: CRFEntityExtractor
- name: EntitySynonymMapper
- name: SklearnIntentClassifier
- name: "KeywordIntentClassifier"

policies:
- name: MemoizationPolicy
- name: TEDPolicy

importers:
- name: MultiProjectImporter
Expand Down
6 changes: 6 additions & 0 deletions data/test_trackers/tracker_moodbot.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"confidence": 0.60,
"name": "mood_great"
},
"message_id": null,
"metadata": {},
"text": "/mood_great",
"intent_ranking": [
{
Expand Down Expand Up @@ -46,6 +48,8 @@
"confidence": 0.54,
"name": "greet"
},
"message_id": null,
"metadata": {},
"text": "/greet",
"intent_ranking": [
{
Expand Down Expand Up @@ -89,6 +93,8 @@
"confidence": 0.60,
"name": "mood_great"
},
"message_id": null,
"metadata": {},
"text": "/mood_great",
"intent_ranking": [
{
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/business-logic.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ Here's a minimal checklist of files we modified to handle business logic using a

* `actions.py`: Define the form action, including the `required_slots`, `slot_mappings` and `submit` methods

* `data/nlu.md`:
* `data/nlu.yml`:

* Add examples for an intent to activate the form

Expand All @@ -308,7 +308,7 @@ Here's a minimal checklist of files we modified to handle business logic using a

* Add all intents and entities from your NLU training data

* `data/stories.md`: Add a story for the form
* `data/stories.yml`: Add a story for the form

* `config.yml`:

Expand Down
Loading