ZyX
d0c4d4e266
Ignore IOError’s in ConfigLoader.update
...
Fixes #932
2014-07-26 01:46:54 +04:00
ZyX
0fc7856b1b
Rename create_renderer_kwargs to cr_kwargs for consistency
2014-07-10 21:27:41 +04:00
ZyX
289094362e
Rename find_config_file to _find_config_file
2014-07-10 21:27:41 +04:00
ZyX
c570a98065
Add watcher option
...
Ref #818
2014-06-28 21:10:15 +04:00
ZyX
6f6c1fb90c
Add tests
2014-06-25 20:05:24 +04:00
ZyX
515df615bf
Add some basic tests
2014-06-24 23:36:50 +04:00
ZyX
ba41cecb72
Add powerline.lib.threaded tests
2014-02-23 15:18:20 +04:00
ZyX
a71c49d96b
Add tests
2014-01-17 20:51:38 +04:00
ZyX
bb0d9028f1
Make sure watcher is not used
2013-11-21 00:23:25 +04:00
ZyX
95d13a334a
Test that nothing is reloaded with run_once=True
2013-11-21 00:18:34 +04:00
ZyX
b78a8cea14
Fix tmux tests
2013-05-02 15:47:05 +04:00
ZyX
af2f8f588b
Replace MultiClientWatcher and Powerline threads with ConfigLoader
...
Also
- move file opening and parsing to ConfigLoader
- add interval configuration
2013-04-06 17:18:25 +04:00
ZyX
33d32498b9
Do not use create_renderer from a separate thread
...
Also moves functions from tests.test_config_reload to tests.lib.config_mock
Using create_renderer for vim results in vim access from a separate thread.
2013-04-03 06:33:56 +04:00
ZyX
c2ceac093f
Add replace_item with function, remove os import
2013-03-31 00:02:53 +04:00
ZyX
3ebc16a48c
Replace pl.environ/getcwd/home with segment_info
2013-03-30 21:55:00 +04:00
ZyX
29f29213a9
Remove ThreadedSegment.write_lock
...
Assuming getattr(self, 'update_value') and setattr(self, 'update_value', value)
are atomic. True with cpython unless somebody defined __getattribute__ or
__setattr__.
2013-03-30 14:07:24 +04:00
ZyX
6c495374a0
Fix exec call for non-python-2.7
2013-03-24 20:03:09 +04:00
ZyX
1351207462
Some fixes for flake8
2013-03-24 19:59:56 +04:00
ZyX
ed435f8063
Add required pl argument to segments
...
Fixes #340
Ref #330
2013-03-24 19:44:01 +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
fb2e9b6cdb
Test all other segments
...
Still uncovered: email_imap_alert and now_playing
2013-03-17 21:23:27 +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
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