mirror of
https://github.com/onyx-and-iris/slobs-cli.git
synced 2025-06-27 07:10:24 +01:00
ensure studio mode is disabled on test cleanup
This commit is contained in:
parent
864751ecc9
commit
b14d9b7610
@ -9,7 +9,13 @@ import os
|
||||
|
||||
import anyio
|
||||
from anyio import create_task_group
|
||||
from pyslobs import ConnectionConfig, ScenesService, SlobsConnection, StreamingService
|
||||
from pyslobs import (
|
||||
ConnectionConfig,
|
||||
ScenesService,
|
||||
SlobsConnection,
|
||||
StreamingService,
|
||||
TransitionsService,
|
||||
)
|
||||
|
||||
|
||||
async def cleanup(conn: SlobsConnection):
|
||||
@ -29,6 +35,11 @@ async def cleanup(conn: SlobsConnection):
|
||||
if model.recording_status != 'offline':
|
||||
await ss.toggle_recording()
|
||||
|
||||
ts = TransitionsService(conn)
|
||||
model = await ts.get_model()
|
||||
if model.studio_mode:
|
||||
await ts.disable_studio_mode()
|
||||
|
||||
conn.close()
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user