diff --git a/Cargo.toml b/Cargo.toml index da9a23d..770d518 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,6 @@ version = "0.1.2" edition = "2024" description = "Rust library crate featuring an API wrapper of the CKAN Action v3 API." repository = "https://github.com/dathere/ckanaction" -homepage = "https://ckanaction.dathere.com" license = "Unlicense" keywords = ["ckan"] categories = ["api-bindings", "asynchronous"] diff --git a/src/lib.rs b/src/lib.rs index d1e5ef8..fe6fa34 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -8,7 +8,6 @@ use bon::bon; use serde_json::json; use std::{collections::HashMap, path::PathBuf}; -#[derive(Debug)] pub struct CKAN { url: String, token: Option, diff --git a/tests/general.rs b/tests/general.rs index 77a67d0..591ae73 100644 --- a/tests/general.rs +++ b/tests/general.rs @@ -10,26 +10,24 @@ pub async fn get_ckan_builder() -> CKAN { .build() } -#[tokio::test] -#[ignore = "Set values for const at top of tests file locally."] -async fn status_show() -> Result<(), Box> { - let ckan = get_ckan_builder().await; - let response = ckan.status_show().await?; - assert!(response.is_object()); - let success = response - .as_object() - .unwrap() - .get("success") - .unwrap() - .as_bool() - .unwrap(); - assert!(success); - Ok(()) -} +#[cfg(test)] +mod tests { + use super::*; -#[tokio::test] -async fn print_ckan_struct_with_debug() -> Result<(), Box> { - let ckan = get_ckan_builder().await; - assert_eq!(format!("{ckan:?}"), r#"CKAN { url: "", token: Some("") }"#); - Ok(()) + #[tokio::test] + #[ignore = "Set values for const at top of tests file locally."] + async fn status_show() -> Result<(), Box> { + let ckan = get_ckan_builder().await; + let response = ckan.status_show().await?; + assert!(response.is_object()); + let success = response + .as_object() + .unwrap() + .get("success") + .unwrap() + .as_bool() + .unwrap(); + assert!(success); + Ok(()) + } }