Mercurial > hg > vampy-host
view test_metadata.py @ 24:392878bea53d
PyType_Ready call: fill type dictionary (without this, we crash on e.g. tab completion in ipython)
author | Chris Cannam |
---|---|
date | Wed, 26 Nov 2014 09:32:50 +0000 |
parents | fe83d6d78429 |
children | 13dcfe8c7ed7 |
line wrap: on
line source
import vampyhost as vh testPluginKey = "vamp-test-plugin:vamp-test-plugin" ##!!! could use: plugin version def test_list(): plugins = vh.listPlugins() if testPluginKey not in plugins: print("Test plugin " + testPluginKey + " not installed or not returned by enumerate: can't run any tests without it") assert testPluginKey in plugins def test_path(): path = vh.getPluginPath() assert len(path) > 0 def test_getlibrary(): lib = vh.getLibraryFor(testPluginKey) assert lib != "" def test_getoutputlist(): outputs = vh.getOutputsOf(testPluginKey) assert len(outputs) == 8 assert "curve-vsr" in outputs