From 020ce924c6c7fcdd851722c07dc14f5187fbc07e Mon Sep 17 00:00:00 2001 From: gandalf3 Date: Thu, 22 Jun 2017 18:00:29 -0700 Subject: [PATCH] Test for an invalid case --- tests/test_blenderpack.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/test_blenderpack.py b/tests/test_blenderpack.py index c685b05..f595f64 100644 --- a/tests/test_blenderpack.py +++ b/tests/test_blenderpack.py @@ -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'))