summaryrefslogtreecommitdiffstats
path: root/bindings/test
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-02-17 13:41:26 +0100
committerDavid Robillard <d@drobilla.net>2020-02-17 13:41:26 +0100
commit941a6ffaebeeb98bf570bdb092da253d140b4911 (patch)
treeb500f2b928d266b1dbf0b9433016e358c901ba13 /bindings/test
parent221d838fa6140b2799aa54feb7b136b38c2ca0f4 (diff)
downloadlilv-941a6ffaebeeb98bf570bdb092da253d140b4911.tar.gz
lilv-941a6ffaebeeb98bf570bdb092da253d140b4911.tar.bz2
lilv-941a6ffaebeeb98bf570bdb092da253d140b4911.zip
Add positive Python test for get_port_by_designation()
Diffstat (limited to 'bindings/test')
-rw-r--r--bindings/test/bindings_test_plugin.ttl.in1
-rw-r--r--bindings/test/python/test_api.py5
2 files changed, 6 insertions, 0 deletions
diff --git a/bindings/test/bindings_test_plugin.ttl.in b/bindings/test/bindings_test_plugin.ttl.in
index 1600283..2430831 100644
--- a/bindings/test/bindings_test_plugin.ttl.in
+++ b/bindings/test/bindings_test_plugin.ttl.in
@@ -41,6 +41,7 @@
a lv2:OutputPort ,
lv2:ControlPort ;
lv2:index 1 ;
+ lv2:designation <http://lv2plug.in/ns/ext/parameters#amplitude> ;
lv2:symbol "output" ;
lv2:name "Output"
] , [
diff --git a/bindings/test/python/test_api.py b/bindings/test/python/test_api.py
index 4b32f07..919fee6 100644
--- a/bindings/test/python/test_api.py
+++ b/bindings/test/python/test_api.py
@@ -241,6 +241,11 @@ class PluginTests(unittest.TestCase):
self.world.ns.lv2.InputPort, self.world.ns.lv2.control
)
)
+ self.assertIsNotNone(
+ self.plugin.get_port_by_designation(
+ self.lv2_OutputPort, self.params_amplitude
+ )
+ )
self.assertIsNone(self.plugin.get_project())
self.assertIsNone(self.plugin.get_author_name())
self.assertIsNone(self.plugin.get_author_email())