bapaurana commited on
Commit
005c4bf
·
1 Parent(s): 9aa2297
Files changed (2) hide show
  1. test/test_app.py +0 -14
  2. test/test_hello.py +12 -0
test/test_app.py CHANGED
@@ -1,14 +0,0 @@
1
- import pytest
2
- from app import build_index, respond
3
-
4
- def test_build_index():
5
- print("Testing build_index...")
6
- index, meta = build_index()
7
- assert index is not None
8
- assert meta is not None
9
-
10
- def test_respond():
11
- print("Testing respond...")
12
- respond("I need a comic about procrastination.")
13
- assert response is str
14
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
test/test_hello.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import unittest
2
+
3
+ class TestHello(unittest.TestCase):
4
+ def test_hello(self):
5
+ self.assertEqual(hello(), "Hello, World!")
6
+
7
+
8
+ def hello():
9
+ return "Hello, World!!"
10
+
11
+ if __name__ == "__main__":
12
+ unittest.main()