Spaces:
Sleeping
Sleeping
Commit
·
72194e7
1
Parent(s):
84875e8
Debugged test cases of brainstorming
Browse files- tests/test_api.py +7 -2
tests/test_api.py
CHANGED
|
@@ -48,13 +48,18 @@ def test_human_refining_ideation():
|
|
| 48 |
assert response.status_code == 200
|
| 49 |
|
| 50 |
def test_brainstorming():
|
| 51 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
print(response.json())
|
| 53 |
assert response.status_code == 200
|
| 54 |
|
| 55 |
def test_brainstorming_with_topics():
|
| 56 |
payload = {
|
| 57 |
-
"preferred_topics": ["fitness","community"]
|
|
|
|
| 58 |
}
|
| 59 |
response = client.post("/api/brainstorm", json=payload)
|
| 60 |
print(response.json())
|
|
|
|
| 48 |
assert response.status_code == 200
|
| 49 |
|
| 50 |
def test_brainstorming():
|
| 51 |
+
payload = {
|
| 52 |
+
"preferred_topics": [],
|
| 53 |
+
"image_base64_list": []
|
| 54 |
+
}
|
| 55 |
+
response = client.post("/api/brainstorm", json=payload)
|
| 56 |
print(response.json())
|
| 57 |
assert response.status_code == 200
|
| 58 |
|
| 59 |
def test_brainstorming_with_topics():
|
| 60 |
payload = {
|
| 61 |
+
"preferred_topics": ["fitness","community"],
|
| 62 |
+
"image_base64_list": []
|
| 63 |
}
|
| 64 |
response = client.post("/api/brainstorm", json=payload)
|
| 65 |
print(response.json())
|