From 19f7ce143522ccaf08282a26b9a58d7116cbbbf5 Mon Sep 17 00:00:00 2001 From: Waffle Date: Sat, 7 Sep 2019 22:10:19 +0300 Subject: [PATCH] Remove test-replacement-to-main in SendPhoto --- src/core/requests/send_photo.rs | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/src/core/requests/send_photo.rs b/src/core/requests/send_photo.rs index 0c19e059..61da25d4 100644 --- a/src/core/requests/send_photo.rs +++ b/src/core/requests/send_photo.rs @@ -121,33 +121,3 @@ impl<'a> SendPhoto<'a> { self } } - -#[cfg(test)] -mod tests { - use super::*; - use reqwest::r#async::Client; - - const TOKEN: &str = "882997251:AAGImZKe4cO6vDzluWzCgYqebziIMroN7uU"; - const USER_ID: i64 = 268486177; - - #[test] - fn send_photo() { - use futures::FutureExt; - use futures::TryFutureExt; - tokio::run(async_send_photo().boxed().unit_error().compat()) - } - - async fn async_send_photo() { - let client = Client::new(); - let req = SendPhoto::new( - RequestContext { - client: &client, - token: TOKEN, - }, - ChatId::Id(USER_ID), - InputFile::File("D:\\Снимок.png".to_string().parse().unwrap()), - ); - - println!("{:?}", req.send().await); - } -}