Exemplo n.º 1
0
    def setUp(self):
        mocks.setup_test(self, Module)

        self._mp = mock.patch("bumblebee.modules.load.multiprocessing")
        self._os = mock.patch("bumblebee.modules.load.os")

        self.mp = self._mp.start()
        self.os = self._os.start()

        self.mp.cpu_count.return_value = 1
Exemplo n.º 2
0
    def setUp(self):
        mocks.setup_test(self, Module)

        self._mp = mock.patch("bumblebee.modules.load.multiprocessing")
        self._os = mock.patch("bumblebee.modules.load.os")

        self.mp = self._mp.start()
        self.os = self._os.start()

        self.mp.cpu_count.return_value = 1
Exemplo n.º 3
0
 def setUp(self):
     mocks.setup_test(self, Module)
     self.tool = ""
     self.up = ""
     self.down = ""
     if bumblebee.util.which("light"):
         self.tool = "light"
         self.up = "-A {}%"
         self.down = "-U {}%"
     elif bumblebee.util.which("brightnessctl"):
         self.tool = "brightnessctl"
         self.up = "s {}%+"
         self.down = "s {}%-"
     else:
         self.tool = "xbacklight"
         self.up = "+{}%"
         self.down = "-{}%"
Exemplo n.º 4
0
 def setUp(self):
     mocks.setup_test(self, Module)
     self._psutil = mock.patch("bumblebee.modules.cpu.psutil")
     self.psutil = self._psutil.start()
Exemplo n.º 5
0
    def setUp(self):
        mocks.setup_test(self, Module)

        self.xset_active = "  timeout:  0    cycle:  123"
        self.xset_inactive = "  timeout:  600    cycle:  123"
Exemplo n.º 6
0
 def setUp(self):
     mocks.setup_test(self, Module)
     self._os = mock.patch("bumblebee.modules.disk.os")
     self.os = self._os.start()
     self.config.set("disk.path", "somepath")
     self.config.set("disk.open", "nautilus")
Exemplo n.º 7
0
 def setUp(self):
     mocks.setup_test(self, Module)
Exemplo n.º 8
0
 def setUp(self):
     mocks.setup_test(self, Module)
     self._os = mock.patch("bumblebee.modules.disk.os")
     self.os = self._os.start()
     self.config.set("disk.path", "somepath")
Exemplo n.º 9
0
    def setUp(self):
        mocks.setup_test(self, Module)

        self.songTemplate = """
Exemplo n.º 10
0
 def setUp(self):
     mocks.setup_test(self, Module)
     self._psutil = mock.patch("bumblebee.modules.memory.psutil")
     self.psutil = self._psutil.start()
Exemplo n.º 11
0
 def setUp(self):
     mocks.setup_test(self, Module)
Exemplo n.º 12
0
    def setUp(self):
        mocks.setup_test(self, Module)

        self.songTemplate = """
Exemplo n.º 13
0
    def setUp(self):
        mocks.setup_test(self, Module)

        self.xset_active = "  timeout:  0    cycle:  123"
        self.xset_inactive = "  timeout:  600    cycle:  123"