[tests/brightness] Remove unneeded mock for stdout
This commit is contained in:
parent
36848770a5
commit
aaaf62673d
1 changed files with 0 additions and 5 deletions
|
@ -12,15 +12,11 @@ import tests.mocks as mocks
|
||||||
|
|
||||||
import bumblebee.input
|
import bumblebee.input
|
||||||
from bumblebee.config import Config
|
from bumblebee.config import Config
|
||||||
from bumblebee.engine import Engine
|
|
||||||
from bumblebee.input import I3BarInput, WHEEL_UP, WHEEL_DOWN
|
from bumblebee.input import I3BarInput, WHEEL_UP, WHEEL_DOWN
|
||||||
from bumblebee.modules.brightness import Module
|
from bumblebee.modules.brightness import Module
|
||||||
|
|
||||||
class TestBrightnessModule(unittest.TestCase):
|
class TestBrightnessModule(unittest.TestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
self._stdout = mock.patch("sys.stdout", new_callable=StringIO)
|
|
||||||
self.stdout = self._stdout.start()
|
|
||||||
|
|
||||||
self._stdin, self._select, self.stdin, self.select = mocks.epoll_mock("bumblebee.input")
|
self._stdin, self._select, self.stdin, self.select = mocks.epoll_mock("bumblebee.input")
|
||||||
|
|
||||||
self.popen = mocks.MockPopen()
|
self.popen = mocks.MockPopen()
|
||||||
|
@ -37,7 +33,6 @@ class TestBrightnessModule(unittest.TestCase):
|
||||||
self.anyWidget = widget
|
self.anyWidget = widget
|
||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
self._stdout.stop()
|
|
||||||
self._stdin.stop()
|
self._stdin.stop()
|
||||||
self._select.stop()
|
self._select.stop()
|
||||||
self.popen.cleanup()
|
self.popen.cleanup()
|
||||||
|
|
Loading…
Reference in a new issue