Commit Graph

2206 Commits

Author SHA1 Message Date
ZyX f4e3c3099f Remove everything up until `class Foo(object):` in pdb tests
PyPy3 displays prompt two times on the line where `s` is present.
2015-02-01 12:13:56 +03:00
ZyX c3e541d16a Remove empty lines 2015-02-01 12:08:09 +03:00
ZyX 0db8154b9a Document how to pdb bindings with Python-2.6 and update tests 2015-01-31 21:44:43 +03:00
ZyX e63a1c7cb5 Display the log after long wait 2015-01-31 21:34:26 +03:00
ZyX d8252f66b7 Move main() into powerline.bindings.pdb 2015-01-31 21:34:26 +03:00
ZyX f9d65fb34d Do not wait for too long in do_run_test 2015-01-31 20:25:40 +03:00
ZyX 2ef5107628 Import overrides from environment in PDB prompts 2015-01-31 20:23:10 +03:00
ZyX 5bc68b66fe Define all groups in both default and solarized colorschemes 2015-01-31 18:54:14 +03:00
ZyX f74320fba8 Add unit tests for pdb segments 2015-01-31 18:54:13 +03:00
ZyX 27291b5e0e Force ASCII-only prompt when using PyPy 2015-01-31 18:54:13 +03:00
ZyX 682a9ab504 Warn that PyPy is not supported 2015-01-31 18:54:13 +03:00
ZyX deacb9ab02 Add some methods to PowerlineRenderResult
This is an attempt to fix PDB prompt on PyPy. Does not work.
2015-01-31 18:54:13 +03:00
ZyX ef02ab70fb Also test powerline.bindings.pdb module 2015-01-31 18:52:04 +03:00
ZyX 47dbdd571d Add pdb integration tests 2015-01-31 18:52:04 +03:00
ZyX cac9754fcf Add pdb-specific segments and make default theme use them 2015-01-31 18:52:04 +03:00
ZyX b0d295301b Add some hacks to make code compatible with pdbpp 2015-01-31 18:44:41 +03:00
ZyX 9bbec772e0 Add support for pdb prompt
Note: pdbpp is not supported, it has lots of problems with unicode<-->str
conversion (either explicit or implicit).
2015-01-31 18:44:41 +03:00
ZyX 7250cd4bd8 Use `:py:meth` for referring to methods 2015-01-31 18:44:41 +03:00
ZyX 36d64bc3da Remove unused `get_segment_info` method 2015-01-31 18:44:40 +03:00
ZyX f5d96743fe Move IPython prompt and rcsh renderers into a separate module
Some applications that use readline use same variants of telling it where
highlighting starts and ends. This module will also be used for pdb.
2015-01-31 18:44:40 +03:00
Nikolai Aleksandrovich Pavlov cddfc364c1 Merge pull request #1289 from ZyX-I/fix-lint-hl-groups
Fix highlight groups linting
2015-01-31 15:36:46 +03:00
ZyX 72d9b8305a Fix linter errors: add necessary highlight groups or fix docstrings
Fixes #1136
2015-01-31 15:15:34 +03:00
ZyX 3b56cf748b Fix linting of highlight groups
Currently checks for highlight group existence do not work. With this commit
tests will fail due to #1136.
2015-01-31 15:14:38 +03:00
ZyX b22562b028 Merge branch 'fix-1286' into develop 2015-01-26 20:39:49 +03:00
ZyX c606db75a5 Remove call to a removed function
Function was removed in a90b080 (“Remove all exports”), but call survived.

Fixes #1286
2015-01-26 20:39:11 +03:00
Nikolai Aleksandrovich Pavlov edec4215c1 Merge pull request #1285 from ZyX-I/fixed-1256
Add BAR support with i3 bindings
2015-01-25 19:20:09 +03:00
ZyX ff0631c625 Make sure powerline class knows that it will use UTF-8 2015-01-25 17:17:24 +03:00
ZyX ea9eae676f Always write UTF-8 string 2015-01-25 17:17:24 +03:00
ZyX 1e7dc7900d Fix issues found in 1256 pull request
Ref #1256
2015-01-25 12:51:19 +03:00
S0lll0s dd77d420a3 Add BAR (bar ain't recursive) renderer and fitting i3 bindings 2015-01-25 12:26:13 +03:00
Nikolai Aleksandrovich Pavlov 9dfd40a6a7 Merge pull request #1284 from ZyX-I/update-zpython
Update zpython bindings according to new zpython changes
2015-01-25 02:23:20 +03:00
Nikolai Aleksandrovich Pavlov c0e5ef6710 Merge pull request #1283 from ZyX-I/fix-configuration-tests
When testing Vim do not rely on test order and do not save state

Ref #1256
2015-01-25 02:11:39 +03:00
ZyX 614c17d115 Do not use `zsh.eval` to unset special value 2015-01-25 02:08:36 +03:00
ZyX 96571cc47b Use new `zsh.expand` function in place of `zsh.eval` 2015-01-25 02:06:35 +03:00
ZyX 332a266d87 When testing Vim do not rely on test order and do not save state
This commit refactors `TestVim` test class in test_configuration so that

1. `test_environ_update` does not leave state (value of `powerline_config_paths` 
   global Vim variable) behind other tests can use.
2. `test_local_themes` does not rely on state left from `test_environ_update`, 
   instead using new facility for providing needed value of 
   `Powerline.get_config_paths` call. This facility will be used later in BAR 
   tests.

Ref #1256
2015-01-25 01:58:27 +03:00
ZyX ab4021a273 Make sure that powerline.bindings.zsh is able to work with old zpython 2015-01-25 01:24:05 +03:00
Nikolai Aleksandrovich Pavlov 8b17a19ebe Merge pull request #1277 from ZyX-I/update-tests
Update code according to the changes in deps repository
2015-01-18 16:12:45 +03:00
ZyX 71322dfe5b Use st-256color terminal for tests
Reasoning:

1. vt* TERMs (used to be vt100 here) make tmux-1.9 use different and identical
   colors for inactive windows. This is not like tmux-1.6: foreground color is
   different from separator color and equal to (0, 102, 153) for some reason
   (separator has correct color). tmux-1.8 is fine, so are older versions
   (though tmux-1.6 and tmux-1.7 do not have highlighting for previously active
   window) and my system tmux-1.9a.
2. screen, xterm and some other non-256color terminals both have the same issue
   and make libvterm emit complains like `Unhandled CSI SGR 3231`.
3. screen-256color, xterm-256color and other -256color terminals make libvterm
   emit complains about unhandled escapes to stderr.
4. `st-256color` does not have any of the above problems, but it may be not
   present on the target system because it is installed with x11-terms/st and
   not with sys-libs/ncurses.

For the given reasons decision was made: to fix tmux-1.9 tests and not make
libvterm emit any data to stderr st-256color $TERM should be used, up until
libvterm has its own terminfo database entry (if it ever will). To make sure
that relevant terminfo entry is present on the target system it should be
distributed with powerline test package. To make distribution not require
modifying anything outside of powerline test directory TERMINFO variable is set.
2015-01-18 05:15:47 +03:00
ZyX 25a56df98b Remove irrelevant logs 2015-01-18 05:15:47 +03:00
ZyX 71d7e3921f Also supply LD_LIBRARY_PATH when killing server 2015-01-18 03:50:12 +03:00
ZyX c93a1b79b3 Run tests for all tmux versions present in deps 2015-01-18 02:47:38 +03:00
ZyX 2debb7c146 Update code according to the changes in deps repository 2015-01-18 02:42:24 +03:00
Nikolai Aleksandrovich Pavlov e02e6dc1c7 Merge pull request #1265 from ZyX-I/fix-1264
Fix tmux bindings and add functional test for tmux
2015-01-17 00:55:49 +03:00
ZyX 6f6c466bc3 Make sure LD_LIBRARY_PATH and PYTHONPATH are exported
LD_LIBRARY_PATH is required for UCS2 CPython versions.
2015-01-17 00:41:28 +03:00
ZyX f0d0ad1bfd Make sure PyPy3 is not used with vterm tests 2015-01-17 00:26:12 +03:00
ZyX 1e25c5ec42 After failing tmux vterm tests run powerline-config
Its output may give some clue.
2015-01-17 00:26:12 +03:00
ZyX a0edcccecf Increase sleeping time
It appears that just one second is not enough for travis
2015-01-17 00:26:12 +03:00
ZyX 44273f299b Do not print the whole screen unles something went wrong 2015-01-17 00:26:12 +03:00
ZyX c43bd06bd6 Use `env` for running $POWERLINE_CONFIG_COMMAND
This way we are making sure that this variable is always treated as a single
path to executable which is not so in case of `eval`.
2015-01-17 00:26:12 +03:00
ZyX faef4585b2 Add support for old tmux versions in tests
Tmux-1.6 does not have special highlighting for previously active window. Other
then that view is identical.
2015-01-17 00:26:12 +03:00