Commit 8b0d510a authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

added docstring in unit tests

parent 70822dae
Pipeline #157 passed with stages
in 13 seconds
...@@ -7,7 +7,7 @@ from csst_proto.top_level_interface import flip_image, read_test_image ...@@ -7,7 +7,7 @@ from csst_proto.top_level_interface import flip_image, read_test_image
class FlipImageTestCase(unittest.TestCase): class FlipImageTestCase(unittest.TestCase):
def test_flip_image(self): def test_flip_image(self):
# flip test image """ test flip image """
self.assertTrue( self.assertTrue(
np.all(flip_image(read_test_image()) == np.array([[4, 3], [2, 1]])) np.all(flip_image(read_test_image()) == np.array([[4, 3], [2, 1]]))
) )
......
...@@ -4,6 +4,7 @@ from csst_proto.top_level_interface import a_demo_function ...@@ -4,6 +4,7 @@ from csst_proto.top_level_interface import a_demo_function
class TestCaseDemoFunction(unittest.TestCase): class TestCaseDemoFunction(unittest.TestCase):
""" test demo function """
def test_demo_function(self): def test_demo_function(self):
# flip test image # flip test image
self.assertTrue( self.assertTrue(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment