jellyfin-qbittorrent-monitor: nit with test

This commit is contained in:
Simon Gardling 2025-10-24 18:14:40 -04:00
parent f7c2c441ac
commit 6ecd228a58
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D

View File

@ -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