diff options
author | David Blajda <blajda@hotmail.com> | 2019-05-08 15:38:37 +0000 |
---|---|---|
committer | David Blajda <blajda@hotmail.com> | 2019-05-08 15:38:37 +0000 |
commit | 98fb79b85e3cfbb547e5340b30623511daf09ef5 (patch) | |
tree | a03bd7a95c86a92eb7510409429f50433056d7ab /tests/common/mod.rs | |
parent | 0e09c2c06fc0b81f11d12985a4172c815233db17 (diff) |
:WIP: Move types to a different crate
Diffstat (limited to 'tests/common/mod.rs')
-rw-r--r-- | tests/common/mod.rs | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/tests/common/mod.rs b/tests/common/mod.rs deleted file mode 100644 index ff2eb08..0000000 --- a/tests/common/mod.rs +++ /dev/null @@ -1,32 +0,0 @@ -extern crate twitch_api; -extern crate hyper; -extern crate futures; -extern crate reqwest; -extern crate url; -extern crate http; - -use tokio::runtime::current_thread::Runtime; -use twitch_api::{ClientConfig, TestConfig}; -use reqwest::r#async::Response; -use http::response::Builder; - -pub const CLIENT_ID: &str = "cfabdegwdoklmawdzdo98xt2fo512y"; -pub const CLIENT_SECRET: &str = "nyo51xcdrerl8z9m56w9w6wg"; - -pub fn test_config() -> (ClientConfig, TestConfig) { - let test_config = TestConfig::default(); - (ClientConfig { - test_config: Some(test_config.clone()), - max_retrys: 0, - ..ClientConfig::default() - }, test_config) -} - -pub fn okay_response(data: &'static str) -> Response { - - let response = - Builder::new() - .status(200) - .body(data).unwrap(); - Response::from(response) -}
\ No newline at end of file |