Skip to content

Commit

Permalink
!squash more options doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed May 6, 2024
1 parent daacb3d commit 8ce6521
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/libtmux/options.py
Expand Up @@ -445,6 +445,15 @@ def explode_complex(
... "server-info": "show-messages -JT"}}
True
>>> explode_complex(explode_arrays({"terminal-features": {0: "xterm*:clipboard:ccolour:cstyle:focus",
... 1: "screen*:title"}}))
{'terminal-features': {0: 'xterm*:clipboard:ccolour:cstyle:focus', 1: 'screen*:title'}}
>>> explode_complex(explode_arrays({"terminal-features": {0: "xterm*:clipboard:ccolour:cstyle:focus",
... 8: "screen*:title"}})) == TmuxArray({'terminal-features': {0:
... 'xterm*:clipboard:ccolour:cstyle:focus', 8: 'screen*:title'}})
True
>>> explode_complex(explode_arrays(parse_options_to_dict(io.StringIO(r'''
... terminal-overrides[0] xterm-256color:Tc
... terminal-overrides[1] *:U8=0
Expand Down Expand Up @@ -582,6 +591,7 @@ def set_option(
>>> import typing as t
>>> from libtmux.common import tmux_cmd
>>> from libtmux.constants import OptionScope
>>> from libtmux._internal.constants import TmuxArray
>>> class MyServer(OptionsMixin):
... socket_name = server.socket_name
Expand Down

0 comments on commit 8ce6521

Please sign in to comment.