cq-test / scripts /quick_test.py
NANI-Nithin's picture
Phase 2: ship the core happy path
e9fc2fc
Raw
History Blame Contribute Delete
653 Bytes
"""Quick test for diverse mock generation."""
import sys; sys.path.insert(0, '.')
from app.services.generator import generate_game_mock
from app.services.retrieval import load_games_dataset, normalize_game_record
raw = load_games_dataset('app/data/games_dataset.json')
norm = [normalize_game_record(r) for r in raw]
cfg = {
'game_type': 'scavenger_hunt', 'city': 'Paris', 'area': 'Le Marais',
'duration_minutes': 60, 'num_players': 4, 'difficulty': 'medium', 'age_group': 'adults'
}
g = generate_game_mock(cfg, norm[:3])
print(g['title'])
for t in g['tasks']:
print(f" {t['task_id']}: {t['title']} | {t['points']}pts | {t['proof_type']}")