mirror of
https://github.com/onyx-and-iris/obsws-python.git
synced 2026-04-20 23:13:30 +00:00
Compare commits
7 Commits
4d9dfa9d11
...
req-rework
| Author | SHA1 | Date | |
|---|---|---|---|
| 4e9fb934be | |||
| 82baa40e79 | |||
| 3bce50701e | |||
| 8e8062d5c8 | |||
| 6f64e884d8 | |||
| 90abc4f9ee | |||
| f564f53c69 |
@@ -171,7 +171,9 @@ logging.basicConfig(level=logging.DEBUG)
|
||||
|
||||
Install [hatch][hatch-install] and then:
|
||||
|
||||
`hatch test`
|
||||
```
|
||||
hatch test
|
||||
```
|
||||
|
||||
### Official Documentation
|
||||
|
||||
|
||||
1937
obsws_python/reqs.py
1937
obsws_python/reqs.py
File diff suppressed because it is too large
Load Diff
@@ -1 +1 @@
|
||||
version = "1.7.1"
|
||||
version = "1.8.0"
|
||||
|
||||
@@ -13,35 +13,8 @@ class TestRequests:
|
||||
|
||||
def test_get_hot_key_list(self):
|
||||
resp = req_cl.get_hot_key_list()
|
||||
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)
|
||||
assert resp.hotkeys
|
||||
assert any(x.startswith("OBSBasic.") for x in resp.hotkeys)
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"name,data",
|
||||
|
||||
Reference in New Issue
Block a user