Move test
All checks were successful
Cargo CI / Build and Test (pull_request) Successful in 1m51s
Cargo CI / Lint (pull_request) Successful in 1m3s

This commit is contained in:
Wojciech Kozlowski 2024-09-08 23:20:19 +02:00
parent 086f1935ac
commit 349332bd89
2 changed files with 7 additions and 8 deletions

View File

@ -166,13 +166,6 @@ mod tests {
app.unwrap_search();
}
#[test]
fn fetch_musicbrainz_no_artist() {
let browse = AppMachine::browse(inner(music_hoard(vec![])));
let app = browse.fetch_musicbrainz();
app.unwrap_error();
}
#[test]
fn fetch_musicbrainz() {
let mb_api = MockIMusicBrainz::new();

View File

@ -199,7 +199,7 @@ mod tests {
use crate::tui::{
app::{
machine::tests::{inner, music_hoard},
AppAlbumMatches, AppArtistMatches,
AppAlbumMatches, AppArtistMatches, IAppInteract,
},
event::EventReceiver,
lib::interface::musicbrainz::{self, Match, MockIMusicBrainz},
@ -209,6 +209,12 @@ mod tests {
use super::*;
#[test]
fn fetch_no_artist() {
let app = AppMachine::app_fetch_new(inner(music_hoard(vec![])));
assert!(matches!(app.state(), AppState::Error(_)));
}
fn event_channel() -> (EventSender, EventReceiver) {
let event_channel = EventChannel::new();
let events_tx = event_channel.sender();