Mercurial > hg > vampy-host
view test_metadata.py @ 17:3893b76daf80
Type checking for process call, start on some tests
author | Chris Cannam |
---|---|
date | Mon, 24 Nov 2014 16:22:54 +0000 |
parents | |
children | fe83d6d78429 |
line wrap: on
line source
import vampyhost as vh testPluginKey = "vamp-test-plugin:vamp-test-plugin" ##!!! could use: plugin version def test_enumerate(): plugins = vh.enumeratePlugins() 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.getLibraryForPlugin(testPluginKey) assert lib != "" def test_getoutputlist(): outputs = vh.getOutputList(testPluginKey) assert len(outputs) == 8 assert "curve-vsr" in outputs