From be07682f084ade7ac1be8792ff6e969733438686 Mon Sep 17 00:00:00 2001 From: noah morrison Date: Sat, 1 Nov 2014 16:33:14 -0400 Subject: [PATCH] Made unit tests more descriptive --- test_spec.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.47.3