Get the latest Blender, older versions, or experimental builds.
Stay up-to-date with the new features in the latest Blender releases.
Access production assets and knowledge from the open movies.
Documentation on the usage and features in Blender.
Latest development updates, by Blender developers.
Guidelines, release notes and development docs.
A platform to collect and share results of the Blender Benchmark.
The yearly event that brings the community together.
Support core development with a monthly contribution.
Perform a single donation with more payment options available.
#!/usr/bin/env python3
import unittest
import os.path
import blenderpack
class test_blenderpack_make_repo(unittest.TestCase):
helper_path = os.path.join('tests', 'test_helpers')
def test_extract_blinfo_from_file(self):
with open(os.path.join(self.helper_path, 'ivy_gen_blinfo.txt'), 'r') as f:
expectation = f.read()
reality = str(blenderpack.extract_blinfo(os.path.join(self.helper_path, 'addons', 'add_curve_ivygen.py')))
self.assertEqual(expectation, reality)
def test_extract_blinfo_from_zip(self):
with open(os.path.join(self.helper_path, 'extra_objects_blinfo.txt'), 'r') as f:
reality = str(blenderpack.extract_blinfo(os.path.join(self.helper_path, 'addons', 'add_curve_extra_objects.zip')))
def test_extract_blinfo_from_dir(self):
reality = str(blenderpack.extract_blinfo(os.path.join(self.helper_path, 'addons', 'add_curve_extra_objects/')))
# def test_validpath(self):
# blenderpack.make_repo(os.path.join('test_helpers', 'addons'))