Beispiel #1
0
    def test_browse_radio_deactivated(self):
        config = ExtensionTest.get_config()
        config['gmusic']['radio_stations_in_browse'] = False
        self.backend = backend_lib.GMusicBackend(config=config, audio=None)

        refs = self.backend.library.browse('gmusic:directory')
        for ref in refs:
            self.assertNotEqual(ref.uri, 'gmusic:radio')
Beispiel #2
0
    def test_browse_radio_deactivated(self):
        config = ExtensionTest.get_config()
        config["gmusic"]["radio_stations_in_browse"] = False
        self.backend = backend_lib.GMusicBackend(config=config, audio=None)

        refs = self.backend.library.browse("gmusic:directory")
        for ref in refs:
            assert ref.uri != "gmusic:radio"
Beispiel #3
0
 def test_init_backend(self):
     backend = backend_lib.GMusicBackend(ExtensionTest.get_config(), None)
     assert backend is not None
     backend.on_start()
     backend.on_stop()
Beispiel #4
0
 def setUp(self):
     config = ExtensionTest.get_config()
     self.backend = backend_lib.GMusicBackend(config=config, audio=None)
Beispiel #5
0
 def test_init_backend(self):
     backend = backend_lib.GMusicBackend(ExtensionTest.get_config(), None)
     self.assertIsNotNone(backend)
     backend.on_start()
     backend.on_stop()