You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
428 B
Rust
15 lines
428 B
Rust
use crate::api::tests::{get_api, get_test_versions};
|
|
|
|
#[test]
|
|
pub fn test_recipes() {
|
|
let versions = get_test_versions();
|
|
|
|
for version in versions {
|
|
let api = get_api(version);
|
|
let recipes = api.recipes.recipes().unwrap();
|
|
let bread_id = api.items.items_by_name().unwrap().get("bread").unwrap().id;
|
|
assert_ne!(recipes.len(), 0);
|
|
assert!(recipes.get(&bread_id).is_some());
|
|
}
|
|
}
|