def test_user_feedback_submit_09(self): """测试不传非必填项attachFileUrls和contactInfo""" result = user_feedback_submit(type_2, title, content, attachFileUrls=None, contactInfo=None) self.assertIn('"code":0', result.text)
def test_user_feedback_submit_06(self): """测试content为空""" result = user_feedback_submit(type_2, title, "", attachFileUrls, contactInfo) self.assertIn('"code":302', result.text)
def test_user_feedback_submit_03(self): """测试用户提问题""" result = user_feedback_submit(type_2, title + "问题", content + "问题", attachFileUrls, contactInfo) self.assertIn('"code":0', result.text)