def test_get_config_schema(self):
        ext = Extension()

        schema = ext.get_config_schema()

        self.assertIn('username', schema)
        self.assertIn('password', schema)
Example #2
0
def test_get_config_schema():
    ext = Extension()

    schema = ext.get_config_schema()

    assert "username" in schema
    assert "password" in schema
Example #3
0
    def test_get_config_schema(self):
        ext = Extension()

        schema = ext.get_config_schema()

        self.assertIn('username', schema)
        self.assertIn('password', schema)
Example #4
0
    def test_setup(self):
        ext = Extension()
        registry = mock.Mock()

        ext.setup(registry)

        registry.add.assert_called_once_with('frontend',
                                             frontend_lib.ScrobblerFrontend)
Example #5
0
    def test_setup(self):
        ext = Extension()
        registry = mock.Mock()

        ext.setup(registry)

        registry.add.assert_called_once_with(
            'frontend', frontend_lib.ScrobblerFrontend)
    def test_get_default_config(self):
        ext = Extension()

        config = ext.get_default_config()

        self.assertIn('[scrobbler]', config)
        self.assertIn('enabled = true', config)
        self.assertIn('username ='******'password =', config)
Example #7
0
def test_get_default_config():
    ext = Extension()

    config = ext.get_default_config()

    assert "[scrobbler]" in config
    assert "enabled = true" in config
    assert "username ="******"password =" in config
Example #8
0
    def test_get_default_config(self):
        ext = Extension()

        config = ext.get_default_config()

        self.assertIn('[scrobbler]', config)
        self.assertIn('enabled = true', config)
        self.assertIn('username ='******'password =', config)