test: fix tests
This commit is contained in:
parent
2c7a3fb5cc
commit
37a14aa9ce
3 changed files with 10 additions and 6 deletions
|
|
@ -201,11 +201,11 @@ MusicAlbum(
|
|||
cover: [],
|
||||
artists: [
|
||||
ArtistId(
|
||||
id: Some("UCxByvsK9hDZk2MnnF9jsFGw"),
|
||||
id: Some("UCzXI_RZ1Uqy8L8TiurTFTIg"),
|
||||
name: "Herbrido",
|
||||
),
|
||||
],
|
||||
artist_id: Some("UCxByvsK9hDZk2MnnF9jsFGw"),
|
||||
artist_id: Some("UCzXI_RZ1Uqy8L8TiurTFTIg"),
|
||||
album: Some(AlbumId(
|
||||
id: "MPREb_Z81wHtF9fhC",
|
||||
name: "June Compilation",
|
||||
|
|
|
|||
|
|
@ -201,11 +201,11 @@ MusicAlbum(
|
|||
cover: [],
|
||||
artists: [
|
||||
ArtistId(
|
||||
id: Some("UCxByvsK9hDZk2MnnF9jsFGw"),
|
||||
id: Some("UCzXI_RZ1Uqy8L8TiurTFTIg"),
|
||||
name: "[name]",
|
||||
),
|
||||
],
|
||||
artist_id: Some("UCxByvsK9hDZk2MnnF9jsFGw"),
|
||||
artist_id: Some("UCzXI_RZ1Uqy8L8TiurTFTIg"),
|
||||
album: Some(AlbumId(
|
||||
id: "MPREb_Z81wHtF9fhC",
|
||||
name: "[name]",
|
||||
|
|
|
|||
|
|
@ -1264,7 +1264,11 @@ mod channel_rss {
|
|||
#[rstest]
|
||||
#[tokio::test]
|
||||
async fn search(rp: RustyPipe, unlocalized: bool) {
|
||||
let result = rp.query().search::<YouTubeItem, _>("testt").await.unwrap();
|
||||
let result = rp
|
||||
.query()
|
||||
.search::<YouTubeItem, _>("arudino")
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
assert_gteo(
|
||||
result.items.count,
|
||||
|
|
@ -1273,7 +1277,7 @@ async fn search(rp: RustyPipe, unlocalized: bool) {
|
|||
);
|
||||
|
||||
if unlocalized {
|
||||
assert_eq!(result.corrected_query.as_deref(), Some("test"));
|
||||
assert_eq!(result.corrected_query.as_deref(), Some("arduino"));
|
||||
}
|
||||
|
||||
assert_next(result.items, rp.query(), 10, 2, true).await;
|
||||
|
|
|
|||
Reference in a new issue