Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3132ca0

Browse files
committed
Whoops, added the assert in the wrong place
1 parent fb61092 commit 3132ca0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dialogflow/participant_management.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ def create_participant(project_id, conversation_id, role):
3535
project_id, conversation_id
3636
)
3737

38-
assert 'python-docs-samples-tests-310' in conversation_path
39-
4038
if role in ROLES:
4139
response = client.create_participant(
4240
parent=conversation_path, participant={"role": role}, timeout=600
@@ -135,6 +133,9 @@ def analyze_content_audio_stream(
135133
participant_path = client.participant_path(
136134
project_id, conversation_id, participant_id
137135
)
136+
137+
assert 'python-docs-samples-tests-310' in participant_path
138+
138139
# Note: hard coding audio_encoding and sample_rate_hertz for simplicity.
139140
audio_encoding = dialogflow.AudioEncoding.AUDIO_ENCODING_LINEAR_16
140141
sample_rate_hertz = 16000

0 commit comments

Comments
 (0)