From c7e2f39132deea04ba9790e5af9c7cd32aac804e Mon Sep 17 00:00:00 2001 From: Tobias Witek Date: Thu, 15 Jun 2017 14:06:45 +0200 Subject: [PATCH] [tests/cpu] Fix expectation for CPU module output --- tests/modules/test_cpu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/modules/test_cpu.py b/tests/modules/test_cpu.py index cd5ce89..af9d28d 100644 --- a/tests/modules/test_cpu.py +++ b/tests/modules/test_cpu.py @@ -22,7 +22,7 @@ class TestCPUModule(unittest.TestCase): self.psutil.cpu_percent.return_value = 21.0 self.module.update_all() for widget in self.module.widgets(): - self.assertEquals(len(widget.full_text()), len("100.00%")) + self.assertEquals(len(widget.full_text()), len("99.0%")) def test_leftclick(self): mocks.mouseEvent(stdin=self.stdin, button=LEFT_MOUSE, inp=self.input, module=self.module)