mirror of
https://github.com/onyx-and-iris/obsws-python.git
synced 2026-04-18 22:13:32 +00:00
add autogenerated reqclient methods
update tests so they pass add Taskfile add hatch-dotenv plugin
This commit is contained in:
@@ -1,19 +1,25 @@
|
||||
import os
|
||||
|
||||
import obsws_python as obs
|
||||
|
||||
req_cl = obs.ReqClient()
|
||||
req_cl = obs.ReqClient(
|
||||
host=os.getenv("OBSWS_TEST_HOST", "localhost"),
|
||||
port=int(os.getenv("OBSWS_TEST_PORT", 4455)),
|
||||
password=os.getenv("OBSWS_TEST_PASSWORD", ""),
|
||||
)
|
||||
|
||||
|
||||
def setup_module():
|
||||
req_cl.create_scene("START_TEST")
|
||||
req_cl.create_scene("BRB_TEST")
|
||||
req_cl.create_scene("END_TEST")
|
||||
req_cl.create_scene(scene_name="START_TEST")
|
||||
req_cl.create_scene(scene_name="BRB_TEST")
|
||||
req_cl.create_scene(scene_name="END_TEST")
|
||||
|
||||
|
||||
def teardown_module():
|
||||
req_cl.remove_scene("START_TEST")
|
||||
req_cl.remove_scene("BRB_TEST")
|
||||
req_cl.remove_scene("END_TEST")
|
||||
req_cl.remove_scene(scene_name="START_TEST")
|
||||
req_cl.remove_scene(scene_name="BRB_TEST")
|
||||
req_cl.remove_scene(scene_name="END_TEST")
|
||||
resp = req_cl.get_studio_mode_enabled()
|
||||
if resp.studio_mode_enabled:
|
||||
req_cl.set_studio_mode_enabled(False)
|
||||
req_cl.set_studio_mode_enabled(studio_mode_enabled=False)
|
||||
req_cl.base_client.ws.close()
|
||||
|
||||
Reference in New Issue
Block a user