Mercurial > hg > vampy-host
view test_plugin_metadata.py @ 50:4aee7f2060ca
Update tests
author | Chris Cannam |
---|---|
date | Tue, 13 Jan 2015 12:11:34 +0000 |
parents | 22f64060ffb4 |
children | a78b14c41c74 |
line wrap: on
line source
import vampyhost as vh testPluginKey = "vamp-test-plugin:vamp-test-plugin" rate = 44100 def test_getoutputlist(): outputs = vh.getOutputsOf(testPluginKey) assert len(outputs) == 9 assert "input-summary" in outputs def test_inputdomain(): plug = vh.loadPlugin(testPluginKey, rate, vh.AdaptNone) assert plug.inputDomain == vh.TimeDomain def test_info(): plug = vh.loadPlugin(testPluginKey, rate, vh.AdaptNone) assert plug.info["identifier"] == "vamp-test-plugin" def test_parameterdescriptors(): plug = vh.loadPlugin(testPluginKey, rate, vh.AdaptNone) assert plug.parameters[0]["identifier"] == "produce_output"