mirror of
https://github.com/powerline/powerline.git
synced 2025-07-23 05:46:01 +02:00
Fix messages
This commit is contained in:
parent
07a130ab25
commit
dfaf8c3b3a
@ -24,13 +24,10 @@ class TestConfig(TestCase):
|
|||||||
self.assertEqual(len(buffers), len(json.load(f)['ext']['vim']['local_themes']))
|
self.assertEqual(len(buffers), len(json.load(f)['ext']['vim']['local_themes']))
|
||||||
outputs = {}
|
outputs = {}
|
||||||
i = 0
|
i = 0
|
||||||
mode = None
|
|
||||||
args = None
|
|
||||||
kwargs = None
|
|
||||||
|
|
||||||
with vim_module._with('split'):
|
with vim_module._with('split'):
|
||||||
with VimPowerline() as powerline:
|
with VimPowerline() as powerline:
|
||||||
def check_output(mode):
|
def check_output(mode, args, kwargs):
|
||||||
if mode == 'nc':
|
if mode == 'nc':
|
||||||
window = vim_module.windows[0]
|
window = vim_module.windows[0]
|
||||||
window_id = 2
|
window_id = 2
|
||||||
@ -49,13 +46,13 @@ class TestConfig(TestCase):
|
|||||||
exclude = set(('no', 'v', 'V', VBLOCK, 's', 'S', SBLOCK, 'R', 'Rv', 'c', 'cv', 'ce', 'r', 'rm', 'r?', '!'))
|
exclude = set(('no', 'v', 'V', VBLOCK, 's', 'S', SBLOCK, 'R', 'Rv', 'c', 'cv', 'ce', 'r', 'rm', 'r?', '!'))
|
||||||
try:
|
try:
|
||||||
for mode in ['n', 'nc', 'no', 'v', 'V', VBLOCK, 's', 'S', SBLOCK, 'i', 'R', 'Rv', 'c', 'cv', 'ce', 'r', 'rm', 'r?', '!']:
|
for mode in ['n', 'nc', 'no', 'v', 'V', VBLOCK, 's', 'S', SBLOCK, 'i', 'R', 'Rv', 'c', 'cv', 'ce', 'r', 'rm', 'r?', '!']:
|
||||||
check_output(mode)
|
check_output(mode, None, None)
|
||||||
for args, kwargs in buffers:
|
for args, kwargs in buffers:
|
||||||
i += 1
|
i += 1
|
||||||
if mode in exclude:
|
if mode in exclude:
|
||||||
continue
|
continue
|
||||||
with vim_module._with(*args, **kwargs):
|
with vim_module._with(*args, **kwargs):
|
||||||
check_output(mode)
|
check_output(mode, args, kwargs)
|
||||||
finally:
|
finally:
|
||||||
vim_module._start_mode('n')
|
vim_module._start_mode('n')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user