Skip to content
Snippets Groups Projects
Commit 989f292f authored by spiglerg's avatar spiglerg
Browse files

new rendering tests

parent ae52b1b6
No related branches found
No related tags found
No related merge requests found
......@@ -39,12 +39,12 @@ def checkFrozenImage(sFileImage):
bytesFrozenImage = None
for sDir in [ "/images/", "/images/test/" ]:
sfPath = sDirRoot + sDir + sFileImage
with open(sfPath, "rb") as fIn:
bytesImage = fIn.read()
if bytesFrozenImage == None:
bytesFrozenImage = bytesImage
else:
assert(bytesFrozenImage == bytesImage)
bytesImage = plt.imread(sfPath)
if bytesFrozenImage is None:
bytesFrozenImage = bytesImage
else:
assert(bytesFrozenImage.shape == bytesImage.shape)
assert((np.sum(np.square(bytesFrozenImage-bytesImage)) / bytesFrozenImage.size) < 1e-3)
def test_render_env():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment