knative-function/test_func.py

13 lines
258 B
Python
Raw Normal View History

2023-12-08 15:24:52 +00:00
import unittest
func = __import__("func")
class TestFunc(unittest.TestCase):
def test_func_empty_request(self):
resp, code = func.main({})
self.assertEqual(resp, "{}")
self.assertEqual(code, 200)
if __name__ == "__main__":
unittest.main()