[modules/cpu] Add initial version of CPU utilization module
Re-enable the CPU utilization module as proof-of-concept for the new core engine. see #23
This commit is contained in:
parent
8855f1155b
commit
aacc56a4e2
9 changed files with 85 additions and 10 deletions
0
tests/modules/__init__.py
Normal file
0
tests/modules/__init__.py
Normal file
16
tests/modules/test_cpu.py
Normal file
16
tests/modules/test_cpu.py
Normal file
|
@ -0,0 +1,16 @@
|
|||
# pylint: disable=C0103,C0111
|
||||
|
||||
import unittest
|
||||
|
||||
from bumblebee.modules.cpu import Module
|
||||
from tests.util import assertWidgetAttributes
|
||||
|
||||
class TestCPUModule(unittest.TestCase):
|
||||
def setUp(self):
|
||||
self.module = Module(None)
|
||||
|
||||
def test_widgets(self):
|
||||
widget = self.module.widgets()
|
||||
assertWidgetAttributes(self, widget)
|
||||
|
||||
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
|
Loading…
Add table
Add a link
Reference in a new issue