mirror of
https://github.com/onyx-and-iris/obsws-python.git
synced 2024-11-22 04:40:53 +00:00
20 lines
477 B
Python
20 lines
477 B
Python
import obsws_python as obs
|
|
|
|
req_cl = obs.ReqClient()
|
|
|
|
|
|
def setup_module():
|
|
req_cl.create_scene("START_TEST")
|
|
req_cl.create_scene("BRB_TEST")
|
|
req_cl.create_scene("END_TEST")
|
|
|
|
|
|
def teardown_module():
|
|
req_cl.remove_scene("START_TEST")
|
|
req_cl.remove_scene("BRB_TEST")
|
|
req_cl.remove_scene("END_TEST")
|
|
resp = req_cl.get_studio_mode_enabled()
|
|
if resp.studio_mode_enabled:
|
|
req_cl.set_studio_mode_enabled(False)
|
|
req_cl.base_client.ws.close()
|