diff --git a/Cargo.toml b/Cargo.toml index 309fc84..3f292dc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "amp-client" description = "The Amphitheatre API client for Rust" -version = "0.6.0" +version = "0.6.1" edition = "2021" license = "Apache-2.0" homepage = "https://amphitheatre.app" diff --git a/src/client.rs b/src/client.rs index 1a168bf..834ac3f 100644 --- a/src/client.rs +++ b/src/client.rs @@ -62,18 +62,6 @@ impl Client { } } -#[cfg(test)] -mod tests { - use crate::client::Client; - const BASE_URL: &str = "https://cloud.amphitheatre.app"; - - #[test] - fn creates_a_client() { - let token = Some("some-auth-token".to_string()); - let _client = Client::new(BASE_URL, token); - } -} - impl Client { /// Returns the `accounts` services attached to this client pub fn accounts(&self) -> Accounts { @@ -95,3 +83,15 @@ impl Client { Playbooks { client: &self.client } } } + +#[cfg(test)] +mod tests { + use crate::client::Client; + const BASE_URL: &str = "https://cloud.amphitheatre.app"; + + #[test] + fn creates_a_client() { + let token = Some("some-auth-token".to_string()); + let _client = Client::new(BASE_URL, token); + } +}