Commit graph

452 commits

Author SHA1 Message Date
yashar-sb-sb
3f96102b28 Update diskspace()
Add hdd icon.
2017-03-09 23:38:31 +03:30
yashar-sb-sb
dfb5bfe71c Update comment
Re-add the comment which was deleted by mistake.
2017-03-09 22:51:28 +03:30
yashar-sb-sb
9efca45b02 Update update()
Fix the issue with computation of used space.
2017-03-09 22:37:41 +03:30
yashar-sb-sb
3f17f0382e Update update module
Used shutil.disk_usage(path) instead of os.statvfs(path)
2017-03-09 20:39:40 +03:30
Tobi-wan Kenobi
ca9712770a Merge branch 'unit-test-refactoring' 2017-03-05 14:20:39 +01:00
Tobi-wan Kenobi
935b50a23b [tests] Maybe patching the platform call fixes the issue with Travis 2017-03-05 14:18:34 +01:00
Tobi-wan Kenobi
11c68310bb [tests] generic modules tests don't work on Travis
Maybe this fixes it...
2017-03-05 14:08:26 +01:00
Tobi-wan Kenobi
a47860e73c [tests] Add unit tests for pulseaudio module 2017-03-05 14:02:11 +01:00
Tobi-wan Kenobi
e59a870a1e [tests] Add unit tests for memory module 2017-03-05 13:58:15 +01:00
Tobi-wan Kenobi
e07a889393 [tests/cpu] Cleaned up unnecessary import 2017-03-05 13:49:52 +01:00
Tobi-wan Kenobi
be01980afe [tests] Add unit tests for disk module 2017-03-05 13:49:45 +01:00
Tobi-wan Kenobi
826c568625 [tests] Add generic module tests
These tests check that all widgets of all modules conform to some basic
principles, at least.
2017-03-05 13:30:10 +01:00
Tobi-wan Kenobi
f9984ba386 [tests] Add unit tests for load module 2017-03-05 13:16:13 +01:00
Tobi-wan Kenobi
c7621caf78 [tests] Add unit tests for the store class 2017-03-05 13:04:20 +01:00
Tobi-wan Kenobi
00849aa4fa [tests] Refactor setting up complex I/O mocking for modules
Modules now only have to have a single setup/teardown line in their code
to fully set up the I/O part of a test.
2017-03-05 13:01:28 +01:00
Tobi-wan Kenobi
69dceca7d0 [tests/cpu] Add unit tests for module cpu 2017-03-05 12:30:37 +01:00
Tobi-wan Kenobi
46977f4d36 [tests/cmus] Add unit tests for cmus module 2017-03-05 12:15:29 +01:00
Tobi-wan Kenobi
939d9851bd [tests/brightness] Remove unused import 2017-03-05 12:15:13 +01:00
Tobi-wan Kenobi
e6d44e7898 [tests/caffeine] Add unit tests for caffeine 2017-03-05 11:48:33 +01:00
Tobi-wan Kenobi
aaaf62673d [tests/brightness] Remove unneeded mock for stdout 2017-03-05 11:48:19 +01:00
Tobi-wan Kenobi
36848770a5 [tests] Add unit tests for brightness module 2017-03-05 11:24:30 +01:00
Tobi-wan Kenobi
463850eddc [tests/battery] Add unused variables 2017-03-05 11:24:11 +01:00
Tobi-wan Kenobi
ce22e9dc75 [tests] remove accidentially committed backup module 2017-03-05 11:23:52 +01:00
Tobi-wan Kenobi
1217aa1f60 [tests/battery] Try to fix failing CI tests 2017-03-05 10:39:08 +01:00
Tobi-wan Kenobi
e4f728327e [tests] Fix imports for Python3 compatibility 2017-03-05 09:40:15 +01:00
Tobi-wan Kenobi
30f3c898ed [tests] Do not use string.lowercase, as Python3 complains about it 2017-03-05 09:37:59 +01:00
Tobi-wan Kenobi
8724af2906 [tests/battery] Add tests for battery module 2017-03-05 09:35:56 +01:00
Tobi-wan Kenobi
728cb73189 [test_i3bar-output] Added i3bar output test modules 2017-03-05 09:34:47 +01:00
Tobi-wan Kenobi
70f138b97b [tests/i3bar-input] Add input tests for i3bar protocol
Also, replaced the MockModule with a generic mock object.
2017-03-05 08:35:15 +01:00
Tobi-wan Kenobi
cdbddcfff7 [tests/i3bar-input] Add tests for i3bar input processing 2017-03-05 07:56:10 +01:00
Tobi-wan Kenobi
ce2bc58919 [coveragerc] excludelines somehow broke the build for Python 2.7 2017-03-04 18:54:42 +01:00
Tobi-wan Kenobi
90dd636b43 [tests/engine] Add test for module aliasing 2017-03-04 18:53:31 +01:00
Tobi-wan Kenobi
6a14681a65 [tests/theme] Add tests for theme.py 2017-03-04 14:17:27 +01:00
Tobi-wan Kenobi
64523119af [tests] Added engine and module tests
Added those two unit tests together, as they are tightly linked together
anyhow.
2017-03-04 13:44:51 +01:00
Tobi-wan Kenobi
f65ab6bcae [tests/config] Add unit tests for config.py 2017-03-04 12:11:43 +01:00
Tobi-wan Kenobi
f0013c7581 [tests/util] Add test for execute with wait=False 2017-03-04 11:35:46 +01:00
Tobi-wan Kenobi
7be8df222d [runtests] Clean up coverage report + add it to runtests.sh
runtests.sh now also reports coverage.
2017-03-04 11:35:25 +01:00
Tobi-wan Kenobi
6dbe440cb5 [tests] Purge tests and start with a clean implementation of subprocess
Seems like subprocess and friends (Popen, communicate) are not so easy
to mock cleanly. Therefore, start from scratch and carefully write test
by test, until (at least) the old test coverage has been restored.
2017-03-04 11:25:52 +01:00
Tobi-wan Kenobi
1c6122fc3f [screenshots] Add screenshot for kernel module 2017-03-03 19:19:44 +01:00
Tobi-wan Kenobi
fe5bbd4b46 [modules/kernel] Use Python standard module "platform"
Instead of executing an external call to "uname", use the standard
Python module "platform" to retrieve information about the kernel used.

Positive side-effect: This is portable, if i3 ever exists on Windows :P
2017-03-03 19:18:25 +01:00
Tobi-wan Kenobi
955f123b88 [modules/kernel] Add documentation and vim hints 2017-03-03 19:13:30 +01:00
tobi-wan-kenobi
64386098b6 Merge pull request #47 from pierre87/newkernelmodule
new module that displays current kernel version
2017-03-03 19:11:56 +01:00
Pierre
bc514265d4 new module that displays current kernel
it uses the output of 'uname -r' prefixed with the linux font-awesome icon
2017-03-03 16:01:59 +01:00
Tobi-wan Kenobi
ec19f48853 [modules/weather] Remove remaining timer references
Remove obsolete _timer references.
2017-02-26 15:30:07 +01:00
tobi-wan-kenobi
17abe74115 Merge pull request #46 from paxy97/master
[modules/weather] Add API key parameter documentation and round temerature
2017-02-26 15:29:32 +01:00
Pavle Portic
44aa1bc564 [modules/weather] Add API key parameter documentation and round temperature to int 2017-02-26 14:17:26 +01:00
Tobi-wan Kenobi
a3f4b0aa6d [input] Cleaner termination logic, also, remove /tmp/bee.log
Accidentially opened file /tmp/bee.log, without writing anything to it.
2017-02-26 09:13:44 +01:00
Tobi-wan Kenobi
6d47240d6a [modules/nic] reduce code complexity (hopefully)
fixes #37
2017-02-26 09:08:36 +01:00
Tobi-wan Kenobi
0496234370 [README.md] Add dependencies 2017-02-26 08:28:30 +01:00
Tobi-wan Kenobi
d30c757a98 [screenshots] Added screenshot for weather module 2017-02-26 08:21:12 +01:00