Skip to content

Commit

Permalink
Updated dependencies + test_server.py indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
alwx committed Nov 4, 2021
1 parent 9a75b23 commit afd3ab1
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 69 deletions.
36 changes: 18 additions & 18 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ colorhash = "~1.0.2"
jsonschema = "~3.2"
packaging = ">=20.0,<21.0"
pytz = ">=2019.1,<2022.0"
rasa-sdk = { git = "https://github.com/rasahq/rasa-sdk.git", branch = "main" }
rasa-sdk = "3.0.0rc1"
colorclass = "~2.2"
terminaltables = "~3.1.0"
sanic = "^21.6.0"
Expand Down Expand Up @@ -128,6 +128,7 @@ typing-utils = "^0.1.0"
tarsafe = "^0.0.3"
randomname = "^0.1.5"
keras = "<2.7.0"
sanic-routing = { git = "https://github.com/wochinge/sanic-routing.git", branch = "fix-routing-with-multiple-path-params" }

[tool.poetry.dev-dependencies]
pytest-cov = "^2.10.0"
Expand Down
100 changes: 50 additions & 50 deletions tests/test_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -1767,13 +1767,13 @@ class NoInputChannels:
None,
True,
"""version: "2.0"
stories:
- story: some-conversation-ID
steps:
- intent: greet
user: |-
hi
- action: utter_greet""",
stories:
- story: some-conversation-ID
steps:
- intent: greet
user: |-
hi
- action: utter_greet""",
),
# conversation with multiple sessions
(
Expand All @@ -1790,19 +1790,19 @@ class NoInputChannels:
None,
True,
"""version: "2.0"
stories:
- story: some-conversation-ID, story 1
steps:
- intent: greet
user: |-
hi
- action: utter_greet
- story: some-conversation-ID, story 2
steps:
- intent: goodbye
user: |-
bye bye
- action: utter_goodbye""",
stories:
- story: some-conversation-ID, story 1
steps:
- intent: greet
user: |-
hi
- action: utter_greet
- story: some-conversation-ID, story 2
steps:
- intent: goodbye
user: |-
bye bye
- action: utter_goodbye""",
),
# conversation with multiple sessions, but setting `all_sessions=false`
# means only the last one is returned
Expand All @@ -1820,13 +1820,13 @@ class NoInputChannels:
None,
False,
"""version: "2.0"
stories:
- story: some-conversation-ID
steps:
- intent: goodbye
user: |-
bye bye
- action: utter_goodbye""",
stories:
- story: some-conversation-ID
steps:
- intent: goodbye
user: |-
bye bye
- action: utter_goodbye""",
),
# the default for `all_sessions` is `false` - this test checks that
# only the latest session is returned in that case
Expand All @@ -1844,13 +1844,13 @@ class NoInputChannels:
None,
None,
"""version: "2.0"
stories:
- story: some-conversation-ID
steps:
- intent: goodbye
user: |-
bye bye
- action: utter_goodbye""",
stories:
- story: some-conversation-ID
steps:
- intent: goodbye
user: |-
bye bye
- action: utter_goodbye""",
),
# `until` parameter means only the first session is returned
(
Expand All @@ -1867,13 +1867,13 @@ class NoInputChannels:
4,
True,
"""version: "2.0"
stories:
- story: some-conversation-ID
steps:
- intent: greet
user: |-
hi
- action: utter_greet""",
stories:
- story: some-conversation-ID
steps:
- intent: greet
user: |-
hi
- action: utter_greet""",
),
# empty conversation
([], None, True, 'version: "2.0"'),
Expand All @@ -1889,15 +1889,15 @@ class NoInputChannels:
None,
True,
"""version: "2.0"
stories:
- story: some-conversation-ID
steps:
- intent: greet
user: |-
hi
- action: utter_greet
- slot_was_set:
- requested_slot: some value""",
stories:
- story: some-conversation-ID
steps:
- intent: greet
user: |-
hi
- action: utter_greet
- slot_was_set:
- requested_slot: some value""",
),
],
)
Expand Down

0 comments on commit afd3ab1

Please sign in to comment.