1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
Description: Disable tests depending on does-it-json
tests::test_json uses does-it-json to verify if +schemars is enabled, but it's
not packaged.
Last-Update: 2023-10-01
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: ipnetwork/tests/test_json.rs
===================================================================
--- ipnetwork.orig/tests/test_json.rs
+++ ipnetwork/tests/test_json.rs
@@ -23,10 +23,10 @@ mod tests {
assert_eq!(::serde_json::to_string(&mystruct).unwrap(), json_string);
- #[cfg(feature = "schemars")]
+ /*#[cfg(feature = "schemars")]
if let Err(s) = does_it_json::validate_with_output(&mystruct) {
panic!("{}", s);
- }
+ }*/
}
#[test]
@@ -49,10 +49,10 @@ mod tests {
assert_eq!(::serde_json::to_string(&mystruct).unwrap(), json_string);
- #[cfg(feature = "schemars")]
+ /*#[cfg(feature = "schemars")]
if let Err(s) = does_it_json::validate_with_output(&mystruct) {
panic!("{}", s);
- }
+ }*/
}
#[test]
@@ -77,10 +77,10 @@ mod tests {
assert_eq!(::serde_json::to_string(&mystruct).unwrap(), json_string);
- #[cfg(feature = "schemars")]
+ /*#[cfg(feature = "schemars")]
if let Err(s) = does_it_json::validate_with_output(&mystruct) {
panic!("{}", s);
- }
+ }*/
}
Index: ipnetwork/Cargo.toml
===================================================================
--- ipnetwork.orig/Cargo.toml
+++ ipnetwork/Cargo.toml
@@ -63,8 +63,8 @@ optional = true
version = "0.5.1"
features = ["html_reports"]
-[dev-dependencies.does-it-json]
-version = "0.0.4"
+#[dev-dependencies.does-it-json]
+#version = "0.0.4"
[dev-dependencies.serde_json]
version = "1.0.116"
|