From fd7c5f6f0b9a8c253e1dbfc420139403889d783d Mon Sep 17 00:00:00 2001 From: Tobias Witek Date: Mon, 26 Jun 2017 20:33:06 +0200 Subject: [PATCH] [tests/brightness] Create open call, if it does not exist Hopefully, this fixes the failing Travis build. --- tests/modules/test_brightness.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/modules/test_brightness.py b/tests/modules/test_brightness.py index 9b91d8f..c8ba08a 100644 --- a/tests/modules/test_brightness.py +++ b/tests/modules/test_brightness.py @@ -54,7 +54,7 @@ class TestBrightnessModule(unittest.TestCase): self.assertEquals(self.module.brightness(self.anyWidget), "020%") self.assertEquals(len(self.module.brightness(self.anyWidget)), len("100%")) - @mock.patch('bumblebee.modules.brightness.open') + @mock.patch('bumblebee.modules.brightness.open', create=True) def test_error(self,mock_open): mock_open.side_effect = FileNotFoundError self.module.update_all()