mirror of
https://github.com/wassname/scikit-image.git
synced 2026-06-28 04:23:17 +08:00
23 lines
487 B
Python
23 lines
487 B
Python
# This mock-up is called by ../tests/test_plugin.py
|
|
# to verify the behaviour of the plugin infrastructure
|
|
|
|
|
|
def imread(fname, dtype=None):
|
|
assert fname == 'test.png'
|
|
assert dtype == 'i4'
|
|
|
|
|
|
def imsave(fname, arr):
|
|
assert fname == 'test.png'
|
|
assert arr == [1, 2, 3]
|
|
|
|
|
|
def imshow(arr, plugin_arg=None):
|
|
assert arr == [1, 2, 3]
|
|
assert plugin_arg == (1, 2)
|
|
|
|
|
|
def imread_collection(x, conserve_memory=True):
|
|
assert conserve_memory == False
|
|
assert x == '*.png'
|