def test_send_markdown(self): dingding = DingDing(TOKEN) rep = dingding.send_markdown("天气提示", "# 天气不错\n> 雨一直下") self.assertEqual(rep["errmsg"], "ok")
def test_send_markdown(self): time.sleep(1) dingding = DingDing(TOKEN) dingding.set_secret(SECRET) rep = dingding.send_markdown("天气提示", "# 天气不错\n> 雨一直下") self.assertEqual(rep["errmsg"], "ok")