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')
Exemple #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"
Exemple #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()
 def setUp(self):
     config = ExtensionTest.get_config()
     self.backend = backend_lib.GMusicBackend(config=config, audio=None)
Exemple #5
0
 def test_init_backend(self):
     backend = backend_lib.GMusicBackend(ExtensionTest.get_config(), None)
     self.assertIsNotNone(backend)
     backend.on_start()
     backend.on_stop()