David Wahlstrom
afb726e37d
pep8 compliance
2016-03-11 07:30:59 -08:00
David Wahlstrom
86c7346476
remove tabs
2016-03-10 12:15:27 -08:00
David Wahlstrom
7c6114df21
plexstatus: pull xml inline
...
To remove external/filesystem deps, move the stream info xml inline.
2016-03-10 11:39:21 -08:00
David Wahlstrom
ad67762b43
plexstatus: add unittests
...
Add unittest for the plexstatus module. Currently verifies that if
there is no stream, the output is null, and if there is a stream, it is
properly getting parsed out of the xml.
2016-03-10 10:51:19 -08:00
enkore
739c595ef0
Fix is_method_of (cf #310 ), add regression test case
2016-01-28 20:34:53 +01:00
enkore
cfe9ec4c43
Rename test_module_clicks.py to test_core_modules.py
2016-01-28 20:05:13 +01:00
enkore
8124668e2b
Add test_callback_handler_method, test_callback_handler_function
2016-01-28 19:20:45 +01:00
enkore
d020b3499b
Speed up execution of test_module_clicks
...
Ideally we'd monkey patch Timer et al so that no dependence on the
host clock exists, which sooner or later might lead to false failures or
positives.
2016-01-05 13:44:35 +01:00
Nuno Cardoso
87c01278f7
Added double click support
2016-01-03 16:43:29 +01:00
enkore
1532040f0b
Replace DIY parametrized tests with @pytest.mark.parametrize
2015-06-24 11:01:53 +02:00
enkore
277aa45de9
Add failing test for #89 (pt. 2)
2015-06-21 20:23:28 +02:00
enkore
ff519fbde0
Remove shebangs and coding tags
2015-06-17 10:32:10 +02:00
enkore
41003ef702
Remove unnecessary metaclass from IntervalModule
2015-06-06 12:49:13 +02:00
gacekjk
be87016259
fix pep8
2015-06-05 17:40:45 +02:00
gacekjk
2f778885e6
code refactor, reformat and add docstrings
2015-06-05 17:23:21 +02:00
gacekjk
f8c803e1cb
GHz values added
2015-06-05 15:04:03 +02:00
gacekjk
d723ae47e3
added cpu frequency module
2015-06-05 04:13:37 +02:00
Matthieu Coudron
c5933a3b26
This commit adds a basic test to check callbacks work.
...
This can also serve as an exemple.
2014-12-21 13:31:40 +01:00
Matthieu Coudron
9e3f128a15
This commit improves the logging system: instead of setting a boolean to enable logging, the user sets a logging level (per module). By default only critical errors are logged (ie nothing for now).
...
Also adds a test for the function run_through_shell
2014-12-18 18:42:58 +01:00
Matthieu Coudron
49a0f01c76
Added missing r to IntevalSettings in test_core_modules
2014-12-18 10:46:53 +01:00
Matthieu Coudron
ff7ea14689
Fixed test that didn't pass anymore (since there were more settings). I also enforced python3 in ci-build.sh otherwise python2.7 would generate syntax errors. Hope it's not a problem
2014-12-17 18:17:19 +01:00
enkore
e8bfec5710
uname: chop trailing newline
2014-11-25 22:36:53 +01:00
enkore
57fda43b4e
Add uname module
2014-11-25 22:35:15 +01:00
enkore
2276dd01b4
plus a little test for #132
...
(I thought i3pystatus was at fault, but no, it's correct)
2014-10-17 16:26:39 +02:00
enkore
6cdbcc8ede
This seems to be different behaviour between py.test and nose
...
nosetests problably switched to the current tests directory before executing them.
2014-10-17 16:25:04 +02:00
enkore
95718c27a8
Remember when we switched to py.test? Yeah well, we lost half the tests on the way there.
2014-10-17 16:12:59 +02:00
enkore
a0a557de9d
PEP 8 (I'm bored): tests/test_core_util
2014-10-14 16:53:15 +02:00
enkore
00c230f4f8
Update battery tests, add case for #66 , fix #66
2014-06-13 23:23:29 +02:00
Łukasz Jędrzejewski
80f11c95d0
Add tests for adding interval setting automatically
2014-03-12 20:10:07 +01:00
enkore
7c8205392b
Remove lots of dumb tests from test_core_util
2013-10-23 21:44:39 +02:00
enkore
d4e5e88986
Set literals
2013-10-23 17:15:09 +02:00
enkore
8fe5c77acd
ModuleList: Remove hard dependency on ClassFinder
2013-10-23 17:14:08 +02:00
enkore
2106585d4c
ClassFinder: fixed unexpected behaviour, add tests for this
2013-10-23 17:13:38 +02:00
enkore
5eb271c684
Remove PrefixedKeyDict (unused)
2013-10-23 16:54:51 +02:00
enkore
78c01dd3e5
PEP8
2013-10-01 15:22:09 +02:00
enkore
69b702d2f1
3.24: Introduce time wrapper, remove battery remaining_* formatter(!!!)
2013-08-04 23:40:19 +02:00
enkore
e94f917226
core.util.formatp add test for complex fields
2013-08-04 17:49:43 +02:00
enkore
ea1cbe9a0c
3.23: Fixed core.util.formatp (also added core.util.flatten for this fix)
2013-08-04 17:25:04 +02:00
enkore
3dc85536ad
[temp] ~stack tokenizer
2013-08-04 16:30:06 +02:00
enkore
aa740e8a4a
core.util.formatp: Add test case breaking it, trying to fix that. Argh.
2013-08-04 14:44:28 +02:00
enkore
d5d0b19330
Add core.util.formatp (this is going to be good)
2013-08-03 03:18:24 +02:00
enkore
6ad0004d37
Extended ModuleList tests
2013-03-11 17:18:19 +01:00
enkore
279c3504c2
Basically complete tests for core.util
...
Currently the entire classfinder magic isn't tested, because
it's hard to test.
2013-03-09 14:53:31 +01:00
enkore
c60d2fd3df
Should definitely test KeyConstraintDict.
...
Seems to be all ok so far, just needed to add __delitem__
2013-03-08 16:59:59 +01:00
enkore
ea4ef6d66d
popwhile tests
2013-03-08 16:08:19 +01:00
enkore
37b69fd158
Hey, how about some determenistic tests? Wouldn't that be real great?
2013-03-08 16:00:42 +01:00
enkore
9084661a5d
Rewrote core.util.partition, added tests for it.
2013-03-08 15:53:48 +01:00
enkore
105a2d12bd
Ghandi-Test
2013-03-08 13:53:14 +01:00
enkore
08c861d902
Add tests for battery module
...
Good news: they're passed before the blob of commits in the
last half hours, and they're still passing...
2013-03-08 03:38:57 +01:00