DOC: Add explanation to test plugin.

This commit is contained in:
Stefan van der Walt
2010-11-09 10:31:42 +02:00
parent 23a4d3d914
commit 082798d5f8
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -1,3 +1,6 @@
# This mock-up is called by ../tests/test_plugin.py
# to verify the behaviour of the plugin infrastructure
def imread(fname, as_grey=False, dtype=None):
assert fname == 'test.png'
assert dtype == 'i4'
+1 -1
View File
@@ -8,7 +8,7 @@ from copy import deepcopy
def setup_module(self):
self.backup_plugin_store = deepcopy(plugin.plugin_store)
plugin.use('test')
plugin.use('test') # see ../_plugins/test_plugin.py
def teardown_module(self):
plugin.plugin_store = self.backup_plugin_store