ZyX
ada5dede25
Fix network_load test
...
It was using old network_load.sleep and also was not shutting down network_load
in case it failed test
2013-03-25 18:45:43 +04:00
ZyX
92652ca5c4
Some fixes for flake8
2013-03-25 00:10:54 +04:00
ZyX
00271c2a0c
Shut down network_load segment in tests
2013-03-24 22:24:48 +04:00
ZyX
d27c720279
Fix race condition, don’t rely on detect feature
...
detect feature is to be tested though
2013-03-24 20:36:28 +04:00
ZyX
1351207462
Some fixes for flake8
2013-03-24 19:59:56 +04:00
ZyX
8a51d99389
Some fixes for zsh, remove some exceptions handling
...
Those exceptions are now handled and logged at top level, thus no need to handle
them in segment.
Ref #330 , it is now fixed for zsh/zpython
Note: do not use zsh/zpython + python3, it does not work properly, even though
this changeset contains fixes for it as well
Fixes #360
2013-03-24 19:48:51 +04:00
ZyX
ed435f8063
Add required pl argument to segments
...
Fixes #340
Ref #330
2013-03-24 19:44:01 +04:00
ZyX
840ac0109b
Port common.branch segment to KwThreaded*, add common.repository_status
2013-03-24 19:35:25 +04:00
ZyX
25806fa075
Added gradient for network_load segment
2013-03-24 01:33:56 +04:00
ZyX
157b849d33
Make weather gradient configurable, add system_load gradient
...
Also make gradients floating-point and fix #332 by removing “normalized” from
system_load segment documentation.
2013-03-24 00:55:54 +04:00
ZyX
11aa74c634
Make it use gradient for weather temperature
...
Ref #301
2013-03-19 23:25:44 +04:00
ZyX
fb2e9b6cdb
Test all other segments
...
Still uncovered: email_imap_alert and now_playing
2013-03-17 21:23:27 +04:00
ZyX
f547e8b85f
Some fixes for flake8
2013-03-17 21:23:15 +04:00
ZyX
62e731314e
Replace memoize with threading where applicable
...
NOTE: Documentation now gets attached to *classes*, not actual segments. Hiding
away classes (by changing their names to start with `_`) and/or doing
self.__doc__ = self.__class__.__doc__
does not work (hiding classes only hides documentation completely). I am
not familiar with sphinx enough to say how this should be fixed.
Ref #168
2013-03-17 21:22:33 +04:00
ZyX
29eccf409b
Use psutil module for `user` segment
2013-03-17 13:28:57 +04:00
ZyX
c237e66958
Make file_size segment output buffer size
2013-03-15 19:31:08 +04:00
ZyX
48470221f0
Make git.Repository.status() also return None
...
Fixes #326
2013-03-14 20:03:26 +04:00
ZyX
e24703dbdd
Add status_colors argument to branch segments
...
Closes #206
2013-03-13 16:51:53 +04:00
Kim Silkebækken
111eaa27e8
Combine vim modelines and Python encoding declarations
...
Ref #314
2013-03-11 10:40:09 +01:00
Kim Silkebækken
6748701fcb
Add vim modelines to all Python files
...
Added with `sed -i '2i# vim:fenc=utf-8:noet' `find -name '*.py'`` and
fixed in a couple of files without the UTF-8 encoding on top.
Ref #314
2013-03-11 08:11:25 +01:00
ZyX
aa0a8bf76d
Make tests support python2.6
...
Old unittest is not working for unknown reason, using unittest2 instead
2013-03-03 21:03:40 +01:00
ZyX
0a05b2961a
Add support for with: statement to tests.vim
...
Also made everything use new vim_module._with where possible
2013-03-03 21:03:34 +01:00
ZyX
c429d9eeb2
Omit using sys.modules if possible
...
Does not work though: still TypeError due to some global in multiproccessing
that got None
2013-03-03 21:03:34 +01:00
ZyX
c334be416d
Add tests.lib module with `replace_*()` with statement functions
...
Note: there is new problem: now multiprocessing() globals got assigned None
values. It is likely somehow related to extended `sys.modules` utilization
2013-03-03 21:03:26 +01:00
ZyX
584755765b
Start adding tests
...
Tests are temporary disabled on all branches except tests (does not really work
though, needs travis.yml in all branches).
2013-03-03 21:03:19 +01:00