Separate the collection from beets output in tests #114

Merged
wojtek merged 8 commits from 113---separate-the-collection-from-beets-output-in-tests into main 2024-01-21 15:29:37 +01:00
7 changed files with 9 additions and 10 deletions
Showing only changes of commit 9cf8e1375c - Show all commits

View File

@ -58,7 +58,7 @@ impl<JDB: IJsonDatabaseBackend> IDatabase for JsonDatabase<JDB> {
}
#[cfg(test)]
pub mod testlib;
pub mod testmod;
#[cfg(test)]
mod tests {
@ -69,7 +69,7 @@ mod tests {
use crate::{testlib::FULL_COLLECTION, Artist, ArtistId, Collection};
use super::*;
use testlib::DATABASE_JSON;
use testmod::DATABASE_JSON;
#[test]
fn save() {

View File

@ -1073,11 +1073,10 @@ mod testlib;
mod tests {
use mockall::predicate;
use crate::library::testlib::LIBRARY_ITEMS;
use crate::testlib::{FULL_COLLECTION, LIBRARY_COLLECTION};
use crate::{database::MockIDatabase, library::MockILibrary};
use super::*;
use database::MockIDatabase;
use library::{testmod::LIBRARY_ITEMS, MockILibrary};
use testlib::{FULL_COLLECTION, LIBRARY_COLLECTION};
static MUSICBRAINZ: &str =
"https://musicbrainz.org/artist/d368baa8-21ca-4759-9731-0b2753071ad8";

View File

@ -170,16 +170,16 @@ impl<BLE: IBeetsLibraryExecutor> ILibraryPrivate for BeetsLibrary<BLE> {
}
#[cfg(test)]
mod testlib;
mod testmod;
#[cfg(test)]
mod tests {
use mockall::predicate;
use crate::library::testlib::LIBRARY_ITEMS;
use crate::library::testmod::LIBRARY_ITEMS;
use super::*;
use testlib::LIBRARY_BEETS;
use testmod::LIBRARY_BEETS;
#[test]
fn test_query() {

View File

@ -135,7 +135,7 @@ impl From<Utf8Error> for Error {
}
#[cfg(test)]
pub mod testlib;
pub mod testmod;
#[cfg(test)]
mod tests {