This commit is contained in:
2020-04-25 23:18:30 +08:00
parent 85cfeefbfa
commit 76a8c7dc2e
4 changed files with 65 additions and 3 deletions

13
tests/test_wechatwork.rs Normal file
View File

@@ -0,0 +1,13 @@
use dingtalk::*;
#[test]
fn run_all_tests_wechat_work() {
tokio_test::block_on(_test_send_wechat_work()).unwrap();
}
async fn _test_send_wechat_work() -> XResult<()> {
let dt = DingTalk::from_file("~/.wechat-work-token.json")?;
dt.send_text("test message 001 ---------------------").await?;
Ok(())
}