@@ -20,35 +20,38 @@ def test_returns_response_with_json_when_called(self, birth_post_data):
2020 res = c .post ('/' , json = birth_post_data )
2121
2222 assert res .json == {
23- 'fulfillmentMessages' : [
24- {
25- 'platform' : 'ACTIONS_ON_GOOGLE' ,
26- 'text' : {
27- 'text' : [
28- 'Today in the year 308, At '
29- 'Carnuntum, Emperor emeritus '
30- 'Diocletian confers with Galerius, '
31- 'Augustus of the East, and '
32- 'Maximianus, the recently returned '
33- 'former Augustus of the West, in '
34- 'an attempt to end the civil wars '
35- 'of the Tetrarchy.'
36- ]
37- }
38- }
39- ],
40- 'fulfillmentText' : 'Today in the year 308, At Carnuntum, Emperor '
41- 'emeritus Diocletian confers with Galerius, '
42- 'Augustus of the East, and Maximianus, the '
43- 'recently returned former Augustus of the '
44- 'West, in an attempt to end the civil wars of '
45- 'the Tetrarchy.' ,
46- 'outputContexts' : [],
4723 'payload' : {
4824 'google' : {
4925 'expect_user_response' : True ,
5026 'is_ssml' : True ,
51- 'permissions_request' : None
27+ 'permissions_request' : None ,
28+ 'richResponse' : {
29+ 'items' : [
30+ {
31+ 'simpleResponse' : {
32+ 'textToSpeech' :
33+ 'Today in the year 308, At '
34+ 'Carnuntum, Emperor emeritus '
35+ 'Diocletian confers with Galerius, '
36+ 'Augustus of the East, and '
37+ 'Maximianus, the recently returned '
38+ 'former Augustus of the West, in '
39+ 'an attempt to end the civil wars '
40+ 'of the Tetrarchy.' ,
41+ 'displayText' :
42+ 'Today in the year 308, At '
43+ 'Carnuntum, Emperor emeritus '
44+ 'Diocletian confers with Galerius, '
45+ 'Augustus of the East, and '
46+ 'Maximianus, the recently returned '
47+ 'former Augustus of the West, in '
48+ 'an attempt to end the civil wars '
49+ 'of the Tetrarchy.'
50+
51+ }
52+ }
53+ ]
54+ }
5255 }
5356 },
5457 'source' : 'webhook'
0 commit comments