updated tests to work without .env file

This commit is contained in:
2026-03-04 23:07:53 -07:00
parent e34f82b181
commit e743167ba5
6 changed files with 48 additions and 15 deletions
+10
View File
@@ -1,5 +1,6 @@
import asyncio
from agent.config import settings
from agent.loop import run_session
from sandbox.session import PodmanSandbox
@@ -15,6 +16,15 @@ async def run_tui():
def main():
print("Hello from mycode!")
# Validate required settings
if not settings.anthropic_api_key:
print("Error: ANTHROPIC_API_KEY not set")
print("\nPlease create a .env file with:")
print(" ANTHROPIC_API_KEY=sk-ant-...")
print("\nSee .env.example for template")
exit(1)
asyncio.run(run_tui())