[go: up one dir, main page]

Skip to content

Commit

Permalink
Changed test
Browse files Browse the repository at this point in the history
  • Loading branch information
pclausen committed Jul 9, 2018
1 parent 6bb95d0 commit a5456d1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ __pycache__/
.Python
build/
develop-eggs/
#dist/
dist/
downloads/
eggs/
.eggs/
Expand Down Expand Up @@ -46,6 +46,7 @@ coverage.xml
*.cover
.hypothesis/
.pytest_cache/
test_output/

# Translations
*.mo
Expand Down
Empty file removed dist/obj2png
Empty file.
6 changes: 5 additions & 1 deletion test/test_ObjFile.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

import sys
import os
# assumed being called from obj2png/
sys.path.append('./src')

Expand All @@ -13,7 +14,10 @@

def test_open_obj():
obj_file = './obj/bun_zipper_res2.obj'
out_file = './obj/bun_zipper_res2.png'
odir='test_output'
if not os.path.exists(odir):
os.mkdir(odir)
out_file = os.path.join(odir, 'bun_zipper_res2.png')
obj = ObjFile.ObjFile(obj_file)
assert(len(obj.nodes)==8147)
assert(len(obj.faces)==16301)
Expand Down

0 comments on commit a5456d1

Please sign in to comment.