summaryrefslogtreecommitdiff
path: root/trunk/test-plugins
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/test-plugins')
-rw-r--r--trunk/test-plugins/aaa_hello_plugin.py8
-rw-r--r--trunk/test-plugins/hello_plugin.py11
-rw-r--r--trunk/test-plugins/oldhello_plugin.py9
-rw-r--r--trunk/test-plugins/test.cr2bin0 -> 11398232 bytes
-rw-r--r--trunk/test-plugins/test.jpgbin0 -> 24257 bytes
-rw-r--r--trunk/test-plugins/wrongversion_plugin.py12
6 files changed, 40 insertions, 0 deletions
diff --git a/trunk/test-plugins/aaa_hello_plugin.py b/trunk/test-plugins/aaa_hello_plugin.py
new file mode 100644
index 0000000..f7ca7e9
--- /dev/null
+++ b/trunk/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/trunk/test-plugins/hello_plugin.py b/trunk/test-plugins/hello_plugin.py
new file mode 100644
index 0000000..7f0472c
--- /dev/null
+++ b/trunk/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/trunk/test-plugins/oldhello_plugin.py b/trunk/test-plugins/oldhello_plugin.py
new file mode 100644
index 0000000..47b3b67
--- /dev/null
+++ b/trunk/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/trunk/test-plugins/test.cr2 b/trunk/test-plugins/test.cr2
new file mode 100644
index 0000000..0d36264
--- /dev/null
+++ b/trunk/test-plugins/test.cr2
Binary files differ
diff --git a/trunk/test-plugins/test.jpg b/trunk/test-plugins/test.jpg
new file mode 100644
index 0000000..05516b0
--- /dev/null
+++ b/trunk/test-plugins/test.jpg
Binary files differ
diff --git a/trunk/test-plugins/wrongversion_plugin.py b/trunk/test-plugins/wrongversion_plugin.py
new file mode 100644
index 0000000..4ecc6aa
--- /dev/null
+++ b/trunk/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
+