Skip to content

Commit f4525a7

Browse files
committed
Fix broken tests
1 parent 1c6a93b commit f4525a7

1 file changed

Lines changed: 23 additions & 1 deletion

File tree

generator/test_generate.py

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,19 +928,41 @@ def test_cdp_domain_sphinx():
928928
Types
929929
-----
930930
931-
Generally you do not need to instantiate CDP types yourself. Instead, the API creates objects for you as return values from commands, and then you can use those objects as arguments to other commands.
931+
Generally, you do not need to instantiate CDP types
932+
yourself. Instead, the API creates objects for you as return
933+
values from commands, and then you can use those objects as
934+
arguments to other commands.
932935
933936
.. autoclass:: KeyframeStyle
937+
:members:
938+
:undoc-members:
939+
:exclude-members: from_json, to_json
934940
935941
Commands
936942
--------
937943
944+
Each command is a generator function. The return
945+
type ``Generator[x, y, z]`` indicates that the generator
946+
*yields* arguments of type ``x``, it must be resumed with
947+
an argument of type ``y``, and it returns type ``z``. In
948+
this library, types ``x`` and ``y`` are the same for all
949+
commands, and ``z`` is the return type you should pay attention
950+
to. For more information, see
951+
:ref:`Getting Started: Commands <getting-started-commands>`.
952+
938953
.. autofunction:: get_current_time
939954
940955
Events
941956
------
942957
958+
Generally, you do not need to instantiate CDP events
959+
yourself. Instead, the API creates events for you and then
960+
you use the event's attributes.
961+
943962
.. autoclass:: AnimationCanceled
963+
:members:
964+
:undoc-members:
965+
:exclude-members: from_json, to_json
944966
""")
945967
domain = CdpDomain.from_json(json_domain)
946968
actual = domain.generate_sphinx()

0 commit comments

Comments
 (0)