From 8b0d510a1cb908d696f1b61ec0990bb302f4dce9 Mon Sep 17 00:00:00 2001 From: BO ZHANG Date: Thu, 22 Sep 2022 18:58:06 +0800 Subject: [PATCH] added docstring in unit tests --- tests/test_flip_image.py | 2 +- tests/test_other_functions.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_flip_image.py b/tests/test_flip_image.py index 2b8c68f..a657430 100644 --- a/tests/test_flip_image.py +++ b/tests/test_flip_image.py @@ -7,7 +7,7 @@ from csst_proto.top_level_interface import flip_image, read_test_image class FlipImageTestCase(unittest.TestCase): def test_flip_image(self): - # flip test image + """ test flip image """ self.assertTrue( np.all(flip_image(read_test_image()) == np.array([[4, 3], [2, 1]])) ) diff --git a/tests/test_other_functions.py b/tests/test_other_functions.py index 6b77389..b788c66 100644 --- a/tests/test_other_functions.py +++ b/tests/test_other_functions.py @@ -4,6 +4,7 @@ from csst_proto.top_level_interface import a_demo_function class TestCaseDemoFunction(unittest.TestCase): + """ test demo function """ def test_demo_function(self): # flip test image self.assertTrue( -- GitLab