Skip to content

Commit 5569d39

Browse files
committed
!squash more options doctests
1 parent 20f3ee5 commit 5569d39

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/libtmux/options.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,15 @@ def explode_complex(
445445
... "server-info": "show-messages -JT"}}
446446
True
447447
448+
>>> explode_complex(explode_arrays({"terminal-features": {0: "xterm*:clipboard:ccolour:cstyle:focus",
449+
... 1: "screen*:title"}}))
450+
{'terminal-features': {0: 'xterm*:clipboard:ccolour:cstyle:focus', 1: 'screen*:title'}}
451+
452+
>>> explode_complex(explode_arrays({"terminal-features": {0: "xterm*:clipboard:ccolour:cstyle:focus",
453+
... 8: "screen*:title"}})) == TmuxArray({'terminal-features': {0:
454+
... 'xterm*:clipboard:ccolour:cstyle:focus', 8: 'screen*:title'}})
455+
True
456+
448457
>>> explode_complex(explode_arrays(parse_options_to_dict(io.StringIO(r'''
449458
... terminal-overrides[0] xterm-256color:Tc
450459
... terminal-overrides[1] *:U8=0
@@ -582,6 +591,7 @@ def set_option(
582591
>>> import typing as t
583592
>>> from libtmux.common import tmux_cmd
584593
>>> from libtmux.constants import OptionScope
594+
>>> from libtmux._internal.constants import TmuxArray
585595
586596
>>> class MyServer(OptionsMixin):
587597
... socket_name = server.socket_name

0 commit comments

Comments
 (0)