tests: fix music_search_albums:single (black mamba)
This commit is contained in:
parent
de7bd2a965
commit
a24c2686b1
1 changed files with 5 additions and 9 deletions
|
|
@ -1625,14 +1625,13 @@ async fn music_search_episode() {
|
||||||
|
|
||||||
#[rstest]
|
#[rstest]
|
||||||
#[case::single(
|
#[case::single(
|
||||||
"black mamba",
|
"black mamba aespa",
|
||||||
"Black Mamba",
|
"Black Mamba",
|
||||||
"MPREb_OpHWHwyNOuY",
|
"MPREb_OpHWHwyNOuY",
|
||||||
"aespa",
|
"aespa",
|
||||||
"UCEdZAdnnKqbaHOlv8nM6OtA",
|
"UCEdZAdnnKqbaHOlv8nM6OtA",
|
||||||
2020,
|
2020,
|
||||||
AlbumType::Single,
|
AlbumType::Single
|
||||||
2
|
|
||||||
)]
|
)]
|
||||||
#[case::ep(
|
#[case::ep(
|
||||||
"waldbrand",
|
"waldbrand",
|
||||||
|
|
@ -1641,8 +1640,7 @@ async fn music_search_episode() {
|
||||||
"Madeline Juno",
|
"Madeline Juno",
|
||||||
"UCpJyCbFbdTrx0M90HCNBHFQ",
|
"UCpJyCbFbdTrx0M90HCNBHFQ",
|
||||||
2016,
|
2016,
|
||||||
AlbumType::Ep,
|
AlbumType::Ep
|
||||||
1
|
|
||||||
)]
|
)]
|
||||||
#[case::album(
|
#[case::album(
|
||||||
"märchen enden gut",
|
"märchen enden gut",
|
||||||
|
|
@ -1651,8 +1649,7 @@ async fn music_search_episode() {
|
||||||
"Oonagh",
|
"Oonagh",
|
||||||
"UC_vmjW5e1xEHhYjY2a0kK1A",
|
"UC_vmjW5e1xEHhYjY2a0kK1A",
|
||||||
2016,
|
2016,
|
||||||
AlbumType::Album,
|
AlbumType::Album
|
||||||
1
|
|
||||||
)]
|
)]
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
async fn music_search_albums(
|
async fn music_search_albums(
|
||||||
|
|
@ -1663,7 +1660,6 @@ async fn music_search_albums(
|
||||||
#[case] artist_id: &str,
|
#[case] artist_id: &str,
|
||||||
#[case] year: u16,
|
#[case] year: u16,
|
||||||
#[case] album_type: AlbumType,
|
#[case] album_type: AlbumType,
|
||||||
#[case] n_pages: usize,
|
|
||||||
) {
|
) {
|
||||||
let rp = RustyPipe::builder().strict().build();
|
let rp = RustyPipe::builder().strict().build();
|
||||||
let res = rp.query().music_search_albums(query).await.unwrap();
|
let res = rp.query().music_search_albums(query).await.unwrap();
|
||||||
|
|
@ -1689,7 +1685,7 @@ async fn music_search_albums(
|
||||||
|
|
||||||
assert_eq!(res.corrected_query, None);
|
assert_eq!(res.corrected_query, None);
|
||||||
|
|
||||||
assert_next(res.items, rp.query(), 15, n_pages).await;
|
assert_next(res.items, rp.query(), 15, 1).await;
|
||||||
}
|
}
|
||||||
|
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
|
|
|
||||||
Reference in a new issue