Mercurial > hg > vampy-host
view test/test_metadata.py @ 139:aa96f69e2f14
Add support for process timestamp method to low-level api
author | Chris Cannam |
---|---|
date | Wed, 08 Jul 2015 11:37:06 +0100 |
parents | a11b57e9fb0b |
children |
line wrap: on
line source
import vampyhost as vh plugin_key = "vamp-test-plugin:vamp-test-plugin" ##!!! could use: plugin version def test_list(): plugins = vh.list_plugins() if plugin_key not in plugins: print("Test plugin " + plugin_key + " not installed or not returned by enumerate: can't run any tests without it") assert plugin_key in plugins def test_path(): path = vh.get_plugin_path() assert len(path) > 0 def test_getlibrary(): lib = vh.get_library_for(plugin_key) assert lib.find("vamp-test-plugin") >= 0 try: lib = vh.get_library_for("not a well-formatted plugin key") assert False except TypeError: pass lib = vh.get_library_for("nonexistent-library:nonexistent-plugin") assert lib == ""