feat(handler): System handler support for Sonarr
This commit is contained in:
@@ -202,4 +202,23 @@ mod tests {
|
||||
active_sonarr_block
|
||||
);
|
||||
}
|
||||
|
||||
#[rstest]
|
||||
fn test_delegates_system_blocks_to_system_handler(
|
||||
#[values(
|
||||
ActiveSonarrBlock::System,
|
||||
ActiveSonarrBlock::SystemLogs,
|
||||
ActiveSonarrBlock::SystemQueuedEvents,
|
||||
ActiveSonarrBlock::SystemTasks,
|
||||
ActiveSonarrBlock::SystemTaskStartConfirmPrompt,
|
||||
ActiveSonarrBlock::SystemUpdates
|
||||
)]
|
||||
active_sonarr_block: ActiveSonarrBlock,
|
||||
) {
|
||||
test_handler_delegation!(
|
||||
SonarrHandler,
|
||||
ActiveSonarrBlock::System,
|
||||
active_sonarr_block
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user