More unit tests

Copy in a multifile addon for testing, also fix a typo in blenderpack.py
This commit is contained in:
2017-06-22 17:47:38 -07:00
parent 44e0a904a4
commit 20683af72c
13 changed files with 7538 additions and 1 deletions

View File

@@ -22,6 +22,13 @@ class test_blenderpack_make_repo(unittest.TestCase):
reality = str(blenderpack.extract_blinfo(os.path.join(self.helper_path, 'addons', 'add_curve_extra_objects.zip')))
self.assertEqual(expectation, reality)
def test_extract_blinfo_from_dir(self):
with open(os.path.join(self.helper_path, 'extra_objects_blinfo.txt'), 'r') as f:
expectation = f.read()
reality = str(blenderpack.extract_blinfo(os.path.join(self.helper_path, 'addons', 'add_curve_extra_objects/')))
self.assertEqual(expectation, reality)
# def test_validpath(self):
# blenderpack.make_repo(os.path.join('test_helpers', 'addons'))