File size: 656 Bytes
4a45dbd
 
 
 
 
 
e7801d4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4a45dbd
e7801d4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
from fastapi.testclient import TestClient
from api.main import app

client = TestClient(app)

def test_ideation():
    payload = {
        "scores": {
            "originality": 0.8,
            "fluecy": 0.6,
            "flexibility": 0.7,
            "feasibility": 0.9,
            "practical_value": 0.75,
            "surprise_factor": 0.4,
            "combinatorial_novelty": 0.65,
            "scalabality": 0.85,
            "cultural_freshness": 0.55,
            "alignment_with_business_details": 0.95
        }
    }

    response = client.post("/api/ideation", json=payload)
    print(response.json())
    assert response.status_code == 200