jellyfin-qbittorrent-monitor: nit with test
This commit is contained in:
parent
f7c2c441ac
commit
6ecd228a58
@ -280,10 +280,7 @@ pkgs.testers.runNixOSTest {
|
|||||||
media_type in ["Movie", "Episode", "Video"]
|
media_type in ["Movie", "Episode", "Video"]
|
||||||
)
|
)
|
||||||
|
|
||||||
if should_throttle:
|
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'}"
|
||||||
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'}"
|
|
||||||
|
|
||||||
set_jellyfin_state(streaming=False)
|
set_jellyfin_state(streaming=False)
|
||||||
time.sleep(1.5) # Wait for stop delay
|
time.sleep(1.5) # Wait for stop delay
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user