Mercurial > hg > vampy-host
comparison 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 |
comparison
equal
deleted
inserted
replaced
16:7987e3123909 | 17:3893b76daf80 |
---|---|
1 | |
2 import vampyhost as vh | |
3 | |
4 testPluginKey = "vamp-test-plugin:vamp-test-plugin" | |
5 | |
6 ##!!! could use: plugin version | |
7 | |
8 def test_enumerate(): | |
9 plugins = vh.enumeratePlugins() | |
10 if testPluginKey not in plugins: | |
11 print("Test plugin " + testPluginKey + " not installed or not returned by enumerate: can't run any tests without it") | |
12 assert testPluginKey in plugins | |
13 | |
14 def test_path(): | |
15 path = vh.getPluginPath() | |
16 assert len(path) > 0 | |
17 | |
18 def test_getlibrary(): | |
19 lib = vh.getLibraryForPlugin(testPluginKey) | |
20 assert lib != "" | |
21 | |
22 def test_getoutputlist(): | |
23 outputs = vh.getOutputList(testPluginKey) | |
24 assert len(outputs) == 8 | |
25 assert "curve-vsr" in outputs | |
26 |