updated tests to work without .env file
This commit is contained in:
@@ -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())
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user