Skip to content

Commit 1d26619

Browse files
author
Kurt Yoder
authored
Merge pull request #40 from einarf/gz-test
Run all parser tests for gzip file
2 parents 4213139 + 7e40a0a commit 1d26619

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

test/simple.obj.gz

201 Bytes
Binary file not shown.

test/test_parser.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,15 @@ def testObjMaterials(self):
4040
self.assertEqual(material2.name, 'Material2.simple')
4141

4242

43+
class TestParserGz(TestParsers):
44+
"""Run all tests is TestParsers for gzip file as well"""
45+
def setUp(self):
46+
# Append current path to locate files
47+
meshes = pywavefront.Wavefront(prepend_dir('simple.obj.gz'))
48+
self.mesh1 = meshes.mesh_list[0]
49+
self.mesh2 = meshes.mesh_list[1]
50+
51+
4352
class TestMtlParser(unittest.TestCase):
4453
def setUp(self):
4554
# Append current path to locate files

0 commit comments

Comments
 (0)