Skip to content

Commit 7a7027c

Browse files
committed
🐛 Make sure test runs in test tmux session
1 parent 2974fbb commit 7a7027c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tests/test_common.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,7 @@ class Hi(object):
5858
assert has_minimum_version()
5959
assert has_gte_version(TMUX_MIN_VERSION)
6060
assert has_gt_version(TMUX_MAX_VERSION), "Greater than the max-supported version"
61-
assert (
62-
'2.9' == get_version()
63-
)
61+
assert '2.9' == get_version()
6462

6563

6664
def test_get_version_openbsd(monkeypatch):
@@ -181,8 +179,8 @@ def test_tmux_cmd_raises_on_not_found():
181179
tmux_cmd('-V')
182180

183181

184-
def test_tmux_cmd_unicode():
185-
tmux_cmd('new-window', '-t', 3, '-n', 'юникод', '-F', u'Ελληνικά')
182+
def test_tmux_cmd_unicode(session):
183+
session.cmd('new-window', '-t', 3, '-n', 'юникод', '-F', u'Ελληνικά')
186184

187185

188186
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)