ZyX
b1fecebd53
Some fixes for flake8
2013-04-06 18:56:19 +04:00
ZyX
d1d05c9dcf
Add support for reloading configuration in the main thread
2013-04-06 18:09:45 +04:00
ZyX
88865b1145
Defer create_renderer (and thus thread creation) until .render call
...
May fix problem discussed in #397
Also fix documentation for Powerline.render().
2013-04-06 17:18:59 +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
b990c920e9
Use clear_events, do not assert.
2013-04-03 06:02:14 +04:00
ZyX
de47b76a06
Add more assertAccessEvents
...
May fix travis build
2013-04-02 19:23:12 +04:00
ZyX
b7c61f8bf6
Handle removed and then added files
...
Note: if user configuration was removed, but global configuration was not it
will start tracking global configuration file for changes.
2013-04-02 00:27:54 +04:00
ZyX
d1e79000b5
Add tests for reloading theme and colorscheme
2013-03-31 14:57:43 +04:00
ZyX
54471569ab
Check whether it switches configuration fine
2013-03-31 14:53:21 +04:00
ZyX
8c3be65bba
Added test for colors config reloading
2013-03-31 13:37:07 +04:00
ZyX
5a50acf16b
Add initial tests for configuration reloading
...
Currently only:
- Test for not reloading configuration if run_once is not True
- Test for reloading main configuration and other configurations triggered by
changes in main configuration file
TODO: tests for all other configuration files reloading (colors, colorscheme,
theme).
2013-03-31 00:06:49 +04:00