obsws-python/tests/test_attrs.py
Onyx and Iris 797161a6f2 import Callable, Iterable from collections.abs instead of typing.
update tests to reflect changes in the API.

reorganise hatch envs

add black,isort configs to pyproject.toml

add pre-commit config
2025-02-11 09:51:00 +00:00

31 lines
842 B
Python

from tests import req_cl
class TestAttrs:
__test__ = True
def test_get_version_attrs(self):
resp = req_cl.get_version()
assert resp.attrs() == [
"available_requests",
"obs_version",
"obs_web_socket_version",
"platform",
"platform_description",
"rpc_version",
"supported_image_formats",
]
def test_get_current_program_scene_attrs(self):
resp = req_cl.get_current_program_scene()
assert resp.attrs() == [
"current_program_scene_name",
"current_program_scene_uuid",
"scene_name",
"scene_uuid",
]
def test_get_transition_kind_list_attrs(self):
resp = req_cl.get_transition_kind_list()
assert resp.attrs() == ["transition_kinds"]