mirror of
https://github.com/onyx-and-iris/obsws-python.git
synced 2025-05-20 22:00:23 +01:00
Compare commits
No commits in common. "6f64e884d8300bf9468a483e80c982666314505d" and "4d9dfa9d11181a24ff3347a323c42a49a5af208b" have entirely different histories.
6f64e884d8
...
4d9dfa9d11
@ -171,9 +171,7 @@ logging.basicConfig(level=logging.DEBUG)
|
||||
|
||||
Install [hatch][hatch-install] and then:
|
||||
|
||||
```
|
||||
hatch test
|
||||
```
|
||||
`hatch test`
|
||||
|
||||
### Official Documentation
|
||||
|
||||
|
@ -1784,7 +1784,7 @@ class ReqClient:
|
||||
|
||||
|
||||
"""
|
||||
return self.send("ToggleRecord")
|
||||
self.send("ToggleRecord")
|
||||
|
||||
def start_record(self):
|
||||
"""
|
||||
|
@ -1 +1 @@
|
||||
version = "1.7.2"
|
||||
version = "1.7.1"
|
||||
|
@ -13,8 +13,35 @@ class TestRequests:
|
||||
|
||||
def test_get_hot_key_list(self):
|
||||
resp = req_cl.get_hot_key_list()
|
||||
assert resp.hotkeys
|
||||
assert any(x.startswith("OBSBasic.") for x in resp.hotkeys)
|
||||
obsbasic_hotkey_list = [
|
||||
"OBSBasic.SelectScene",
|
||||
"OBSBasic.QuickTransition.1",
|
||||
"OBSBasic.QuickTransition.2",
|
||||
"OBSBasic.QuickTransition.3",
|
||||
"OBSBasic.StartStreaming",
|
||||
"OBSBasic.StopStreaming",
|
||||
"OBSBasic.ForceStopStreaming",
|
||||
"OBSBasic.StartRecording",
|
||||
"OBSBasic.StopRecording",
|
||||
"OBSBasic.PauseRecording",
|
||||
"OBSBasic.UnpauseRecording",
|
||||
"OBSBasic.SplitFile",
|
||||
"OBSBasic.StartReplayBuffer",
|
||||
"OBSBasic.StopReplayBuffer",
|
||||
"OBSBasic.StartVirtualCam",
|
||||
"OBSBasic.StopVirtualCam",
|
||||
"OBSBasic.EnablePreview",
|
||||
"OBSBasic.DisablePreview",
|
||||
"OBSBasic.EnablePreviewProgram",
|
||||
"OBSBasic.DisablePreviewProgram",
|
||||
"OBSBasic.ShowContextBar",
|
||||
"OBSBasic.HideContextBar",
|
||||
"OBSBasic.Transition",
|
||||
"OBSBasic.ResetStats",
|
||||
"OBSBasic.Screenshot",
|
||||
"OBSBasic.SelectedSourceScreenshot",
|
||||
]
|
||||
assert all(x in resp.hotkeys for x in obsbasic_hotkey_list)
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"name,data",
|
||||
|
Loading…
x
Reference in New Issue
Block a user