From: noah morrison Date: Sat, 1 Nov 2014 20:33:14 +0000 (-0400) Subject: Made unit tests more descriptive X-Git-Url: https://git.devinivas.org/?a=commitdiff_plain;h=be07682f084ade7ac1be8792ff6e969733438686;p=chevron.git Made unit tests more descriptive --- diff --git a/test_spec.py b/test_spec.py index 661c5ce..484cf73 100755 --- a/test_spec.py +++ b/test_spec.py @@ -16,9 +16,9 @@ def _test_case_from_path(json_path): def _test_from_object(obj): """Generate a unit test from a test object""" def test_case(self): - """A simple test case""" self.assertEqual(STACHE(obj['template'], obj['data']), obj['expected']) + test_case.__doc__ = 'suite: {} desc: {}'.format(spec, obj['desc']) return test_case with open(json_path, 'r') as f: yaml = json.load(f)