コード例 #1
0
ファイル: action_test.py プロジェクト: Anitej/kairon
 def test_attach_response(self):
     output = ActionUtility.attach_response("I want $${RESPONSE}",
                                            {"dollars": "51"})
     assert output == 'I want ${\'dollars\': \'51\'}'
コード例 #2
0
ファイル: action_test.py プロジェクト: Anitej/kairon
 def test_attach_response_int(self):
     output = ActionUtility.attach_response("I want $${RESPONSE}", 51)
     assert output == 'I want $51'
コード例 #3
0
ファイル: action_test.py プロジェクト: Anitej/kairon
 def test_attach_response_no_placeholder(self):
     output = ActionUtility.attach_response("This has no placeholder",
                                            {"a": "b"})
     assert output == "This has no placeholder"