Fix tests

This commit is contained in:
ZyX 2014-08-06 13:47:11 +04:00
parent 85ea44b1ee
commit ed70cc2eb2
1 changed files with 8 additions and 3 deletions

View File

@ -116,9 +116,14 @@ class TestConfig(TestCase):
config_overrides = None
theme_overrides = {}
with IpyPowerline() as powerline:
segment_info = Args(prompt_count=1)
for prompt_type in ['in', 'in2', 'out', 'rewrite']:
segment_info = Args(prompt_count=1)
with IpyPowerline(True) as powerline:
for prompt_type in ['in', 'in2']:
powerline.render(matcher_info=prompt_type, segment_info=segment_info)
powerline.render(matcher_info=prompt_type, segment_info=segment_info)
with IpyPowerline(False) as powerline:
for prompt_type in ['out', 'rewrite']:
powerline.render(matcher_info=prompt_type, segment_info=segment_info)
powerline.render(matcher_info=prompt_type, segment_info=segment_info)