use tmdb_client::apis::client::APIClient; #[test] fn search_movie_should_give_results() { let client = APIClient::new_from_env(); let result = client.search_api().get_search_movie_paginated("Captain Marvel", Some(2019), None, None, None, None, None); let movies_paginated = result.expect("Error querying movie search API for 'Captain Marvel'"); assert!(movies_paginated.total_results.unwrap() >= 1); } #[test] fn search_person_should_give_results() { let client = APIClient::new_from_env(); let result = client.search_api().get_search_person_paginated("Julia Roberts", Some("fr-FR"), Some(1), Some(true), Some("FR")); let persons_paginated = result.expect("Error querying person search API for 'Julia Roberts'"); assert!(persons_paginated.total_results.unwrap() >= 1); }