Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test():
# from clu.predicates import haspyattr
from clu.predicates import isslotted
G = globals()
for typename in __all__:
if typename != "Adjustment":
assert G[typename]
assert isslotted(G[typename]())
# assert not isdictish(G[typename]())
processors = (Contour(),
Detail(),
Emboss(),
EdgeEnhance(),
EdgeEnhanceMore(),
FindEdges(),
Smooth(),
SmoothMore(),
Sharpen(),
UnsharpMask(),
GaussianBlur(sigmaX=3),
SimpleGaussianBlur(radius=3))
for processor in processors:
assert isslotted(processor)
for image_input in image_inputs:
# image_input.show()
# for processor in processors:
# processor.process(image_input).show()
# image_input.show()
# Contour().process(image_input).show()
# Detail().process(image_input).show()
# Emboss().process(image_input).show()
# EdgeEnhance().process(image_input).show()
# EdgeEnhanceMore().process(image_input).show()
# FindEdges().process(image_input).show()
# Smooth().process(image_input).show()
# SmoothMore().process(image_input).show()
# Sharpen().process(image_input).show()