Test for an invalid case
This commit is contained in:
@@ -29,6 +29,13 @@ class test_blenderpack_make_repo(unittest.TestCase):
|
|||||||
reality = str(blenderpack.extract_blinfo(os.path.join(self.helper_path, 'addons', 'add_curve_extra_objects/')))
|
reality = str(blenderpack.extract_blinfo(os.path.join(self.helper_path, 'addons', 'add_curve_extra_objects/')))
|
||||||
self.assertEqual(expectation, reality)
|
self.assertEqual(expectation, reality)
|
||||||
|
|
||||||
|
def test_extract_blinfo_from_nonexistent(self):
|
||||||
|
self.assertRaises(
|
||||||
|
FileNotFoundError,
|
||||||
|
lambda: blenderpack.extract_blinfo(os.path.join(self.helper_path, 'addons', 'notathing'))
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
# def test_validpath(self):
|
# def test_validpath(self):
|
||||||
# blenderpack.make_repo(os.path.join('test_helpers', 'addons'))
|
# blenderpack.make_repo(os.path.join('test_helpers', 'addons'))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user