def test_get_config_schema(self):
     ext = Extension()
     schema = ext.get_config_schema()
     self.assertIn('directories', schema)
     self.assertIn('timeout', schema)
     self.assertIn('use_album_mbid_uri', schema)
     self.assertIn('use_artist_mbid_uri', schema)
Example #2
0
 def test_get_config_schema(self):
     ext = Extension()
     schema = ext.get_config_schema()
     self.assertIn('directories', schema)
     self.assertIn('encodings', schema)
     self.assertIn('timeout', schema)
     self.assertIn('use_album_mbid_uri', schema)
     self.assertIn('use_artist_mbid_uri', schema)
def test_get_config_schema():
    ext = Extension()
    schema = ext.get_config_schema()
    assert 'directories' in schema
    assert 'timeout' in schema
    assert 'use_album_mbid_uri' in schema
    assert 'use_artist_mbid_uri' in schema
    assert 'search_limit' in schema
Example #4
0
 def test_get_default_config(self):
     ext = Extension()
     config = ext.get_default_config()
     self.assertIn('[local-sqlite]', config)
     self.assertIn('enabled = true', config)
def test_get_default_config():
    ext = Extension()
    config = ext.get_default_config()
    assert '[local-sqlite]' in config
    assert 'enabled = true' in config