Merge pull request #744 from ZyX-I/fix-tests

Fix tests
This commit is contained in:
ZyX-I 2014-01-10 11:42:41 -08:00
commit 1587f262de
2 changed files with 7 additions and 3 deletions

View File

@ -4,6 +4,7 @@
"background": { "fg": "gray13", "bg": "darkgreencopper" },
"background:divider": { "fg": "azure4", "bg": "darkgreencopper" },
"mode": { "fg": "oldlace", "bg": "green", "attr": ["bold"] },
"visual_range": { "fg": "green", "bg": "oldlace", "attr": ["bold"] },
"modified_indicator": { "fg": "yellow", "bg": "lightyellow", "attr": ["bold"] },
"paste_indicator": { "fg": "red", "bg": "lightyellow", "attr": ["bold"] },
"readonly_indicator": { "fg": "red", "bg": "lightyellow" },
@ -28,7 +29,10 @@
"line_current_symbol": { "fg": "oldlace", "bg": "royalblue5" },
"virtcol_current_gradient": { "fg": "yellow_orange_red", "bg": "royalblue5" },
"col_current": { "fg": "lightskyblue4", "bg": "royalblue5" },
"environment": { "fg": "gray61", "bg": "darkgreencopper" }
"environment": { "fg": "gray61", "bg": "darkgreencopper" },
"error": { "fg": "gray13", "bg": "red", "attr": ["bold"] },
"warning": { "fg": "gray13", "bg": "lightyellow", "attr": ["bold"] },
"current_tag": { "fg": "gray13", "bg": "darkgreencopper", "attr": ["bold"] }
},
"mode_translations": {
"nc": {

View File

@ -76,7 +76,7 @@ class TestConfig(TestCase):
def test_zsh(self):
from powerline.shell import ShellPowerline
args = Args(last_pipe_status=[1, 0], ext=['shell'], renderer_module='zsh_prompt')
args = Args(last_pipe_status=[1, 0], jobnum=0, ext=['shell'], renderer_module='zsh_prompt')
with ShellPowerline(args, run_once=False) as powerline:
powerline.render(segment_info={'args': args})
with ShellPowerline(args, run_once=False) as powerline:
@ -84,7 +84,7 @@ class TestConfig(TestCase):
def test_bash(self):
from powerline.shell import ShellPowerline
args = Args(last_exit_code=1, ext=['shell'], renderer_module='bash_prompt', config={'ext': {'shell': {'theme': 'default_leftonly'}}})
args = Args(last_exit_code=1, jobnum=0, ext=['shell'], renderer_module='bash_prompt', config={'ext': {'shell': {'theme': 'default_leftonly'}}})
with ShellPowerline(args, run_once=False) as powerline:
powerline.render(segment_info={'args': args})
with ShellPowerline(args, run_once=False) as powerline: