aether-garden / tests /test_tick.py
kavyabhand's picture
Deploy Aether Garden application
781b9f7 verified
Raw
History Blame Contribute Delete
565 Bytes
"""Smoke test for simulation tick."""
import os
import sys
sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))
os.environ.setdefault("USE_MOCK_AI", "true")
from world.database import init_database
from world.seed_data import seed_locations
from world.database import db_session
from simulation.tick import execute_simulation_tick
def test_tick_runs():
init_database()
with db_session() as conn:
seed_locations(conn)
summary = execute_simulation_tick()
assert "interactions" in summary
assert summary["interactions"] >= 0