Beispiel #1
0
 def test_add_alias(self):
     state = doitlive.SessionState("/bin/zsh", "default", speed=1)
     assert len(state["aliases"]) == 0
     state.add_alias("g=git")
     assert "g=git" in state["aliases"]
Beispiel #2
0
 def test_add_alias(self):
     state = doitlive.SessionState('/bin/zsh', 'default', speed=1)
     assert len(state['aliases']) == 0
     state.add_alias('g=git')
     assert 'g=git' in state['aliases']
Beispiel #3
0
 def state(self):
     return doitlive.SessionState(shell="/bin/zsh",
                                  prompt_template="default",
                                  speed=1)
Beispiel #4
0
 def state(self):
     return doitlive.SessionState(shell='/bin/zsh',
                                  prompt_template='default',
                                  speed=1)