|
27 | 27 | from ask_sdk_model.canfulfill import (CanFulfillIntent, CanFulfillIntentValues, |
28 | 28 | CanFulfillSlot, CanFulfillSlotValues, |
29 | 29 | CanUnderstandSlotValues) |
| 30 | +from ask_sdk_model.interfaces.alexa.presentation.apla.render_document_directive import \ |
| 31 | + RenderDocumentDirective |
30 | 32 | from ask_sdk_model.interfaces.display import PlainText, RichText, TextContent |
31 | 33 | from ask_sdk_model.interfaces.videoapp import (LaunchDirective, Metadata, |
32 | 34 | VideoItem) |
@@ -130,13 +132,14 @@ def test_add_reprompt_directive(self): |
130 | 132 | ) |
131 | 133 |
|
132 | 134 | def test_response_with_reprompt_directive(self): |
| 135 | + directive = RenderDocumentDirective() |
133 | 136 | expected_response = Response( |
134 | 137 | output_speech=SsmlOutputSpeech(ssml="<speak>Hello World</speak>"), |
135 | | - reprompt=Reprompt(directives=['Alexa.Presentation.APLA.RenderDocument']), |
| 138 | + reprompt=Reprompt(directives=[directive]), |
136 | 139 | should_end_session=False) |
137 | 140 |
|
138 | 141 | response_factory = self.response_factory.set_should_end_session(True).add_directive_to_reprompt( |
139 | | - directive='Alexa.Presentation.APLA.RenderDocument').speak('Hello World') |
| 142 | + directive=directive).speak('Hello World') |
140 | 143 | assert response_factory.response == expected_response, ( |
141 | 144 | "The add_directive_to_reprompt method of ResponseFactory fails to add directive") |
142 | 145 |
|
|
0 commit comments