mirror of
https://github.com/arkorty/B.Tech-Project-III.git
synced 2026-04-19 12:41:48 +00:00
init
This commit is contained in:
36
thirdeye/scripts/test_m0.py
Normal file
36
thirdeye/scripts/test_m0.py
Normal file
@@ -0,0 +1,36 @@
|
||||
"""Test Milestone 0: Project structure and env vars."""
|
||||
import os
|
||||
import sys
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
|
||||
|
||||
from backend.config import (
|
||||
TELEGRAM_BOT_TOKEN, GROQ_API_KEY, CEREBRAS_API_KEY,
|
||||
SAMBANOVA_API_KEY, OPENROUTER_API_KEY, COHERE_API_KEY
|
||||
)
|
||||
|
||||
checks = {
|
||||
"TELEGRAM_BOT_TOKEN": TELEGRAM_BOT_TOKEN,
|
||||
"GROQ_API_KEY": GROQ_API_KEY,
|
||||
"CEREBRAS_API_KEY": CEREBRAS_API_KEY,
|
||||
"SAMBANOVA_API_KEY": SAMBANOVA_API_KEY,
|
||||
"OPENROUTER_API_KEY": OPENROUTER_API_KEY,
|
||||
"COHERE_API_KEY": COHERE_API_KEY,
|
||||
}
|
||||
|
||||
all_pass = True
|
||||
for name, val in checks.items():
|
||||
status = "✅" if val and len(val) > 5 else "❌ MISSING"
|
||||
if "❌" in status:
|
||||
all_pass = False
|
||||
print(f" {status} {name}")
|
||||
|
||||
# Check directories exist
|
||||
for d in ["backend/agents", "backend/bot", "backend/db", "backend/api", "dashboard", "scripts"]:
|
||||
path = os.path.join(os.path.dirname(__file__), '..', d)
|
||||
exists = os.path.isdir(path)
|
||||
status = "✅" if exists else "❌ MISSING"
|
||||
if not exists:
|
||||
all_pass = False
|
||||
print(f" {status} Directory: {d}")
|
||||
|
||||
print(f"\n{'🎉 MILESTONE 0 PASSED' if all_pass else '💥 MILESTONE 0 FAILED — fix issues above'}")
|
||||
Reference in New Issue
Block a user