use mars_raw_utils::nsyt::{ latest::LatestData, remote::remote_fetch, remote::fetch_latest }; #[test] #[ignore] fn test_msl_latest() { let latest:LatestData = fetch_latest().expect("Failed to fetch latest data"); assert_eq!(latest.latest, "2022-02-14T15:11:15Z"); assert_eq!(latest.latest_sols.len(), 1); } #[test] #[ignore] // Ignoring this by default to prevent unneccessary load on NASA's servers fn test_nsyt_instrument_fetches() { let instruments = vec!["idc", "icc"]; for i in instruments { eprintln!("Testing fetch for {}", i); remote_fetch(&vec![String::from(i)], 5, Some(0), 3119, 3119, false, true, "", false).unwrap(); } }