test: move small adapter tests to tests/

event-publisher, export, rss, media-server, object-storage, nats(config).
Kept inline (private fn, no public path): nats src/subject.rs
tests::{review_logged_subject,review_updated_subject,movie_discovered_subject,
consumer_subject_filter_appends_wildcard} - event_to_subject/consumer_subject_filter private.
object-storage build_local_store tests rewritten via StorageConfig::from_config.
This commit is contained in:
2026-10-25 22:47:54 +01:00
parent fdf4df38af
commit 74674b157c
16 changed files with 35 additions and 48 deletions

View File

@@ -58,7 +58,3 @@ struct JellyfinPayload {
#[serde(rename = "Provider_imdb")]
provider_imdb: Option<String>,
}
#[cfg(test)]
#[path = "tests/jellyfin.rs"]
mod tests;

View File

@@ -68,7 +68,3 @@ struct PlexMetadata {
struct PlexGuid {
id: String,
}
#[cfg(test)]
#[path = "tests/plex.rs"]
mod tests;

View File

@@ -1,4 +1,5 @@
use super::*;
use domain::ports::MediaServerParser;
use media_server::JellyfinParser;
#[test]
fn parses_valid_playback_stop() {

View File

@@ -1,4 +1,5 @@
use super::*;
use domain::ports::MediaServerParser;
use media_server::PlexParser;
#[test]
fn parses_movie_scrobble() {