Spaces:
Sleeping
Sleeping
Badrivishal Paurana
commited on
Commit
·
9aa2297
1
Parent(s):
a3a487b
Testing Push to Test
Browse files- test/test_app.py +2 -0
test/test_app.py
CHANGED
|
@@ -2,11 +2,13 @@ import pytest
|
|
| 2 |
from app import build_index, respond
|
| 3 |
|
| 4 |
def test_build_index():
|
|
|
|
| 5 |
index, meta = build_index()
|
| 6 |
assert index is not None
|
| 7 |
assert meta is not None
|
| 8 |
|
| 9 |
def test_respond():
|
|
|
|
| 10 |
respond("I need a comic about procrastination.")
|
| 11 |
assert response is str
|
| 12 |
|
|
|
|
| 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 |
|