Test for an invalid case

This commit is contained in:
2017-06-22 18:00:29 -07:00
parent 20683af72c
commit 020ce924c6

View File

@@ -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/')))
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):
# blenderpack.make_repo(os.path.join('test_helpers', 'addons'))