fix(meta,api): detail ratings are optional too

This commit is contained in:
Miguel Palhas
2026-08-23 22:26:04 +01:00
parent c9e73cb23c
commit 30382585ea
3 changed files with 15 additions and 7 deletions
+1 -1
View File
@@ -613,7 +613,7 @@ async fn movie_detail_parses_the_rich_fields() {
assert_eq!(movie.genres[0].name, "Science Fiction");
assert!(movie.poster_path.is_some());
assert!(movie.backdrop_path.is_some());
assert!((movie.vote_average - 8.152).abs() < f64::EPSILON);
assert!((movie.vote_average.expect("rated") - 8.152).abs() < f64::EPSILON);
assert_eq!(movie.vote_count, 6_249);
assert_eq!(movie.homepage.as_deref(), Some("https://www.dunemovie.com"));
assert_eq!(movie.status, "Released");