14 Commits

Author SHA1 Message Date
ZyX
05cb133dd4 Replace g:powerline_config_path Vim variable with …_paths list
This is for consistency with other powerline bindings that now all do have a way 
to specify a list of paths.
2014-09-05 22:13:51 +04:00
ZyX
c5ca1b23c4 Use class setup/teardown methods to use vim module mock 2014-09-05 20:00:19 +04:00
ZyX
06211cbe63 Unify imports
Now imports follow the following structure:

1. __future__ line: exactly one line allowed:

        from __future__ import (unicode_literals, division, absolute_import, print_function)

   (powerline.shell is the only exception due to problems with argparse).
2. Standard python library imports in a form `import X`.
3. Standard python library imports in a form `from X import Y`.
4. and 5. 2. and 3. for third-party (non-python and non-powerline imports).
6. 3. for powerline non-test imports.
7. and 8. 2. and 3. for powerline testing module imports.

Each list entry is separated by exactly one newline from another import. If
there is module docstring it goes between `# vim:` comment and `__future__`
import. So the structure containing all items is the following:

    #!/usr/bin/env python
    # vim:fileencoding=utf-8:noet

    '''Powerline super module'''

    import sys

    from argparse import ArgumentParser

    import psutil

    from colormath.color_diff import delta_e_cie2000

    from powerline.lib.unicode import u

    import tests.vim as vim_module

    from tests import TestCase

.
2014-09-01 00:25:24 +04:00
ZyX
41476544ca Replace name and module keys with function key
Fixes #1031
2014-08-29 23:13:10 +04:00
ZyX
6481f1b65e Always specify all keys in segment_info 2014-08-22 21:03:59 +04:00
ZyX
48aac90681 Fix ipython tests 2014-08-20 21:12:10 +04:00
ZyX
06175dcd74 Refactor IPython bindings
- Replaced two powerline objects with one powerline object utilizing
  RendererProxy proxy class that holds two Renderer instances.
- Made .setup() functions do something more meaningful.
2014-08-19 22:24:10 +04:00
ZyX
b93f8d9b7b Rename Ipython to IPython (two capital letters in place of one) 2014-08-19 22:13:50 +04:00
ZyX
4a8b81e68b Rearrange renderers: move *_prompt modules one level up
Renames powerline.renderers.zsh_prompt to powerline.renderers.shell.zsh, same
for other *sh_prompt modules.
2014-08-15 19:27:10 +04:00
ZyX
547306e746 Add cursor_space and cursor_columns configuration options
Fixes #815
2014-08-10 21:03:33 +04:00
ZyX
17b32b1765 Make ipython accept paths, not a single path 2014-08-10 16:13:32 +04:00
ZyX
ed70cc2eb2 Fix tests 2014-08-06 13:47:11 +04:00
ZyX
ff91ff7f92 Update tests to work with new functionality
Still no tests for new functionality.
2014-08-03 12:53:15 +04:00
ZyX
f02807ffa4 Rename test_configuration to test_provided_config_files 2014-06-24 21:38:07 +04:00