comparison test_metadata.py @ 19:fe83d6d78429

More tests
author Chris Cannam
date Tue, 25 Nov 2014 10:10:49 +0000
parents 3893b76daf80
children 13dcfe8c7ed7
comparison
equal deleted inserted replaced
18:4b9adb4b532f 19:fe83d6d78429
3 3
4 testPluginKey = "vamp-test-plugin:vamp-test-plugin" 4 testPluginKey = "vamp-test-plugin:vamp-test-plugin"
5 5
6 ##!!! could use: plugin version 6 ##!!! could use: plugin version
7 7
8 def test_enumerate(): 8 def test_list():
9 plugins = vh.enumeratePlugins() 9 plugins = vh.listPlugins()
10 if testPluginKey not in plugins: 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") 11 print("Test plugin " + testPluginKey + " not installed or not returned by enumerate: can't run any tests without it")
12 assert testPluginKey in plugins 12 assert testPluginKey in plugins
13 13
14 def test_path(): 14 def test_path():
15 path = vh.getPluginPath() 15 path = vh.getPluginPath()
16 assert len(path) > 0 16 assert len(path) > 0
17 17
18 def test_getlibrary(): 18 def test_getlibrary():
19 lib = vh.getLibraryForPlugin(testPluginKey) 19 lib = vh.getLibraryFor(testPluginKey)
20 assert lib != "" 20 assert lib != ""
21 21
22 def test_getoutputlist(): 22 def test_getoutputlist():
23 outputs = vh.getOutputList(testPluginKey) 23 outputs = vh.getOutputsOf(testPluginKey)
24 assert len(outputs) == 8 24 assert len(outputs) == 8
25 assert "curve-vsr" in outputs 25 assert "curve-vsr" in outputs
26 26