Skip to content
Snippets Groups Projects
Commit 70a8024c authored by hagrid67's avatar hagrid67
Browse files

added leading flatland/ to the file path used for render test

created folder flatland/images/test
parent ea906650
No related branches found
No related tags found
No related merge requests found
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
......@@ -28,7 +28,7 @@ import flatland.utils.rendertools as rt
def checkFrozenImage(sFileImage):
sTmpFileImage = "images/test/" + sFileImage
sTmpFileImage = "flatland/images/test/" + sFileImage
if os.path.exists(sTmpFileImage):
os.remove(sTmpFileImage)
......@@ -36,7 +36,7 @@ def checkFrozenImage(sFileImage):
plt.savefig(sTmpFileImage)
bytesFrozenImage = None
for sDir in [ "images/", "images/test/" ]:
for sDir in [ "flatland/images/", "flatland/images/test/" ]:
sfPath = sDir + sFileImage
with open(sfPath, "rb") as fIn:
bytesImage = fIn.read()
......@@ -81,4 +81,3 @@ def test_render_env():
checkFrozenImage("env-path.png")
\ No newline at end of file
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