def test_setup(self):
     registry = mock.Mock()
     ext = Extension()
     ext.setup(registry)
     registry.add.assert_called_with(
         'backend',
         backend_lib.BeetsLocalBackend)
Esempio n. 2
0
    def test_get_default_config(self):
        ext = Extension()

        config = ext.get_default_config()

        self.assertIn('[beetslocal]', config)
        self.assertIn('enabled = true', config)
        self.assertIn('beetslibrary =', config)
        self.assertIn('use_original_release_date', config)
    def test_get_default_config(self):
        ext = Extension()

        config = ext.get_default_config()

        self.assertIn('[beetslocal]', config)
        self.assertIn('enabled = true', config)
        self.assertIn('beetslibrary =', config)
        self.assertIn('use_original_release_date', config)
Esempio n. 4
0
 def test_setup(self):
     registry = mock.Mock()
     ext = Extension()
     ext.setup(registry)
     registry.add.assert_called_with('backend',
                                     backend_lib.BeetsLocalBackend)
Esempio n. 5
0
    def test_get_config_schema(self):
        ext = Extension()

        schema = ext.get_config_schema()
        self.assertIn('enabled', schema)
        self.assertIn('beetslibrary', schema)
    def test_get_config_schema(self):
        ext = Extension()

        schema = ext.get_config_schema()
        self.assertIn('enabled', schema)
        self.assertIn('beetslibrary', schema)