Provide a keyboard shortcut to sync all existing albums with MusicBrainz #167
@ -127,7 +127,10 @@ impl<MH: IMusicHoard> IAppInteractMatches for AppMachine<MH, AppMatches> {
|
|||||||
mod tests {
|
mod tests {
|
||||||
use musichoard::collection::album::{AlbumDate, AlbumId, AlbumPrimaryType, AlbumSecondaryType};
|
use musichoard::collection::album::{AlbumDate, AlbumId, AlbumPrimaryType, AlbumSecondaryType};
|
||||||
|
|
||||||
use crate::tui::app::{machine::tests::{inner, music_hoard}, IAppAccess};
|
use crate::tui::app::{
|
||||||
|
machine::tests::{inner, music_hoard},
|
||||||
|
IAppAccess,
|
||||||
|
};
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
@ -215,7 +218,10 @@ mod tests {
|
|||||||
let public_matches = public.state.unwrap_matches();
|
let public_matches = public.state.unwrap_matches();
|
||||||
|
|
||||||
assert_eq!(public_matches.matching, Some(&matches_info_vec[0].matching));
|
assert_eq!(public_matches.matching, Some(&matches_info_vec[0].matching));
|
||||||
assert_eq!(public_matches.matches, Some(matches_info_vec[0].matches.as_slice()));
|
assert_eq!(
|
||||||
|
public_matches.matches,
|
||||||
|
Some(matches_info_vec[0].matches.as_slice())
|
||||||
|
);
|
||||||
assert_eq!(public_matches.state, &widget_state);
|
assert_eq!(public_matches.state, &widget_state);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -255,7 +261,6 @@ mod tests {
|
|||||||
matches.select().unwrap_browse();
|
matches.select().unwrap_browse();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn matches_abort() {
|
fn matches_abort() {
|
||||||
let matches_info_vec = matches_info_vec();
|
let matches_info_vec = matches_info_vec();
|
||||||
|
Loading…
Reference in New Issue
Block a user