Beispiel #1
0
 def test_add_none_response_name(self):
     processor = MongoProcessor()
     with pytest.raises(ValidationError):
         processor.add_text_response("Greet", None, "tests", "testUser")
Beispiel #2
0
 def test_add_blank_text_response(self):
     processor = MongoProcessor()
     with pytest.raises(ValidationError):
         processor.add_text_response("", "utter_happy", "tests", "testUser")
Beispiel #3
0
 def test_add_text_response_duplicate(self):
     processor = MongoProcessor()
     with pytest.raises(Exception):
         processor.add_text_response("Great", "utter_happy", "tests",
                                     "testUser")
 def test_add_blank_response_name(self):
     processor = MongoProcessor()
     with pytest.raises(ValidationError):
         processor.add_text_response("Welcome", " ", "tests", "testUser")
 def test_add_empty_response_name(self):
     processor = MongoProcessor()
     with pytest.raises(AssertionError):
         processor.add_text_response("Welcome", "", "tests", "testUser")
 def test_add_empty_text_Response(self):
     processor = MongoProcessor()
     with pytest.raises(AssertionError):
         processor.add_text_response("", "utter_happy", "tests", "testUser")