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
e6d44e7898
[tests/caffeine] Add unit tests for caffeine
2017-03-05 11:48:33 +01:00
Tobi-wan Kenobi
36848770a5
[tests] Add unit tests for brightness module
2017-03-05 11:24:30 +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
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
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
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