Commit ec8ee36a authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

added unit test for demo function

parent 574af1d3
Loading
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
def an_arbitrary_functions(*args):
    """ an arbitrary function """
    print("Hi, this is an arbitrary function.")
    for _ in args:
        print(_)
def a_demo_function(*args):
    """ a demo function """
    return None
+2 −2
Original line number Diff line number Diff line
from .flip_image import flip_image, read_test_image
from .some_other_modules import an_arbitrary_functions
from .some_other_modules import a_demo_function


__all__ = ["flip_image", "read_test_image", "an_arbitrary_functions"]
__all__ = ["flip_image", "read_test_image", "a_demo_function"]
+11 −0
Original line number Diff line number Diff line
import unittest

from csst_proto.top_level_interface import a_demo_function


class TestCaseDemoFunction(unittest.TestCase):
    def test_demo_function(self):
        # flip test image
        self.assertTrue(
            a_demo_function(1) is None
        )