Skip to content

Commit

Permalink
Remove hardcoded manifest test
Browse files Browse the repository at this point in the history
  • Loading branch information
preston-evans98 committed Oct 17, 2023
1 parent 1704e6d commit 747e43f
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions module-system/sov-modules-macros/src/manifest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -302,26 +302,6 @@ impl<'a> Manifest<'a> {
}
}

#[test]
fn fetch_manifest_works() {
let path = env!("CARGO_MANIFEST_DIR");
let path = PathBuf::from(path)
.parent()
.unwrap()
.parent()
.unwrap()
.join("constants.json")
.canonicalize()
.unwrap();

let expected = fs::read_to_string(path).unwrap();
let expected: Value = serde_json::from_str(&expected).unwrap();

let parent = Ident::new("foo", proc_macro2::Span::call_site());
let manifest = Manifest::read_constants(&parent).unwrap();
assert_eq!(*manifest, expected);
}

#[test]
fn parse_gas_config_works() {
let input = r#"{
Expand Down

0 comments on commit 747e43f

Please sign in to comment.