From 6ecd228a58ad2cb06c3a62f9244978a12ef6318d Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Fri, 24 Oct 2025 18:14:40 -0400 Subject: [PATCH] jellyfin-qbittorrent-monitor: nit with test --- tests/jellyfin-qbittorrent-monitor.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/jellyfin-qbittorrent-monitor.nix b/tests/jellyfin-qbittorrent-monitor.nix index aba0634..830fa25 100644 --- a/tests/jellyfin-qbittorrent-monitor.nix +++ b/tests/jellyfin-qbittorrent-monitor.nix @@ -280,10 +280,7 @@ pkgs.testers.runNixOSTest { media_type in ["Movie", "Episode", "Video"] ) - if should_throttle: - assert throttling_active, f"Expected throttling for {media_type}, {'paused' if is_paused else 'playing'}, {'local' if is_local else 'external'}" - else: - assert not throttling_active, f"Expected no throttling for {media_type}, {'paused' if is_paused else 'playing'}, {'local' if is_local else 'external'}" + assert throttling_active == should_throttle, f"Expected {"no " if not should_throttle else ""} throttling for {media_type}, {'paused' if is_paused else 'playing'}, {'local' if is_local else 'external'}" set_jellyfin_state(streaming=False) time.sleep(1.5) # Wait for stop delay