Different naming
This commit is contained in:
parent
48586d0c24
commit
9cf8e1375c
@ -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() {
|
||||
|
@ -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";
|
||||
|
@ -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() {
|
||||
|
@ -135,7 +135,7 @@ impl From<Utf8Error> for Error {
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
pub mod testlib;
|
||||
pub mod testmod;
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
|
Loading…
Reference in New Issue
Block a user