Пример #1
0
def test_get_default_config():
    ext = Extension()

    config = ext.get_default_config()

    assert '[tidal]' in config
    assert 'enabled = true' in config
Пример #2
0
def test_get_default_config():
    ext = Extension()

    config = ext.get_default_config()

    assert '[tidal]' in config
    assert 'enabled = true' in config
Пример #3
0
def test_get_config_schema():
    ext = Extension()

    schema = ext.get_config_schema()

    # Test the content of your config schema
    assert 'token' in schema
    assert 'oauth' in schema
    assert 'quality' in schema
Пример #4
0
def test_get_config_schema():
    ext = Extension()

    schema = ext.get_config_schema()

    # Test the content of your config schema
    assert 'username' in schema
    assert 'password' in schema
    assert 'quality' in schema