summaryrefslogtreecommitdiff
path: root/test-plugins
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2009-11-19 09:19:05 +0200
committerLars Wirzenius <liw@liw.fi>2009-11-19 09:19:05 +0200
commit56aa1e7235ea5fe65e506e6697d4c47a9c7b8743 (patch)
treee8e3d341a45daf420962e1a56ae8fb3120a8e686 /test-plugins
parentfdf76c376d665c5b746cbddc93346f4306c34893 (diff)
downloadobnam-56aa1e7235ea5fe65e506e6697d4c47a9c7b8743.tar.gz
Copied over a plugin manager from Dimbola.
Diffstat (limited to 'test-plugins')
-rw-r--r--test-plugins/aaa_hello_plugin.py8
-rw-r--r--test-plugins/hello_plugin.py11
-rw-r--r--test-plugins/oldhello_plugin.py9
-rw-r--r--test-plugins/wrongversion_plugin.py12
4 files changed, 40 insertions, 0 deletions
diff --git a/test-plugins/aaa_hello_plugin.py b/test-plugins/aaa_hello_plugin.py
new file mode 100644
index 00000000..f7ca7e9b
--- /dev/null
+++ b/test-plugins/aaa_hello_plugin.py
@@ -0,0 +1,8 @@
+import pluginmgr
+
+class Hello(pluginmgr.Plugin):
+
+ def __init__(self, foo, bar=None):
+ self.foo = foo
+ self.bar = bar
+
diff --git a/test-plugins/hello_plugin.py b/test-plugins/hello_plugin.py
new file mode 100644
index 00000000..7f0472c8
--- /dev/null
+++ b/test-plugins/hello_plugin.py
@@ -0,0 +1,11 @@
+import pluginmgr
+
+class Hello(pluginmgr.Plugin):
+
+ def __init__(self, foo, bar=None):
+ self.foo = foo
+ self.bar = bar
+
+ @property
+ def version(self):
+ return '0.0.1'
diff --git a/test-plugins/oldhello_plugin.py b/test-plugins/oldhello_plugin.py
new file mode 100644
index 00000000..47b3b674
--- /dev/null
+++ b/test-plugins/oldhello_plugin.py
@@ -0,0 +1,9 @@
+import pluginmgr
+
+class Hello(pluginmgr.Plugin):
+
+ def __init__(self, foo, bar=None):
+ self.foo = foo
+ self.bar = bar
+
+
diff --git a/test-plugins/wrongversion_plugin.py b/test-plugins/wrongversion_plugin.py
new file mode 100644
index 00000000..4ecc6aac
--- /dev/null
+++ b/test-plugins/wrongversion_plugin.py
@@ -0,0 +1,12 @@
+# This is a test plugin that requires a newer application version than
+# what the test harness specifies.
+
+import pluginmgr
+
+class WrongVersion(pluginmgr.Plugin):
+
+ required_application_version = '9999.9.9'
+
+ def __init__(self, *args, **kwargs):
+ pass
+