Example #1
0
 def test_window(self):
     lib = SongFileLibrary()
     lib.librarian = SongLibrarian()
     pl = player.init_player("nullbe", lib.librarian)
     window = QuodLibetWindow(lib, pl, headless=True)
     assert window in window.windows
     window.destroy()
 def setUp(self):
     self.tempdir = mkdtemp()
     self.pm = PluginManager(folders=[self.tempdir])
     self.lib = SongLibrarian()
     self.player = player.init_player("nullbe", self.lib)
     self.handler = EventPluginHandler(
         librarian=self.lib, player=self.player)
     self.pm.register_handler(self.handler)
     self.pm.rescan()
     self.assertEquals(self.pm.plugins, [])
 def setUp(self):
     self.tempdir = mkdtemp()
     self.pm = PluginManager(folders=[self.tempdir])
     self.lib = SongLibrarian()
     self.player = player.init_player("nullbe", self.lib)
     self.handler = EventPluginHandler(
         librarian=self.lib, player=self.player)
     self.pm.register_handler(self.handler)
     self.pm.rescan()
     self.assertEquals(self.pm.plugins, [])
Example #4
0
 def test_window(self):
     lib = library.init()
     pl = player.init_player("nullbe", lib.librarian)
     window = QuodLibetWindow(lib, pl, headless=True)
     window.destroy()
 def test_window(self):
     lib = library.init()
     pl = player.init_player("nullbe", lib.librarian)
     window = QuodLibetWindow(lib, pl, headless=True)
     window.destroy()