forked from dapr/python-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_conversation.py
More file actions
28 lines (23 loc) · 792 Bytes
/
Copy pathtest_conversation.py
File metadata and controls
28 lines (23 loc) · 792 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import pytest
EXPECTED_LINES = [
"Result: What's Dapr?",
'Give a brief overview.',
]
@pytest.mark.example_dir('conversation')
def test_conversation_alpha1(dapr):
output = dapr.run(
'--app-id conversation-alpha1 --log-level debug --resources-path ./config '
'-- python3 conversation_alpha1.py',
timeout=60,
)
for line in EXPECTED_LINES:
assert line in output, f'Missing in output: {line}'
@pytest.mark.example_dir('conversation')
def test_conversation_alpha2(dapr):
output = dapr.run(
'--app-id conversation-alpha2 --log-level debug --resources-path ./config '
'-- python3 conversation_alpha2.py',
timeout=60,
)
for line in EXPECTED_LINES:
assert line in output, f'Missing in output: {line}'