Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
fix: remove fk constraint test (#3444)
cthomase8643af7401a
diff --git a/tests/test_managers.py b/tests/test_managers.pyindex 3d868eecc..42560f0e9 100644--- a/tests/test_managers.py+++ b/tests/test_managers.py@@ -46,7 +46,7 @@ from letta.jobs.types import ItemUpdateInfo, RequestStatusUpdateInfo, StepStatusfrom letta.orm import Base, Blockfrom letta.orm.block_history import BlockHistoryfrom letta.orm.enums import ToolType-from letta.orm.errors import ForeignKeyConstraintViolationError, NoResultFound, UniqueConstraintViolationError+from letta.orm.errors import NoResultFound, UniqueConstraintViolationErrorfrom letta.orm.file import FileContent as FileContentModelfrom letta.orm.file import FileMetadata as FileMetadataModelfrom letta.schemas.agent import CreateAgent, UpdateAgent@@ -6560,30 +6560,6 @@ def test_job_usage_stats_get_nonexistent_job(server: SyncServer, default_user):job_manager.get_job_usage(job_id="nonexistent_job", actor=default_user)-async def test_job_usage_stats_add_nonexistent_job(server: SyncServer, sarah_agent, default_user, event_loop):- """Test adding usage statistics for a nonexistent job."""- step_manager = server.step_manager-- with pytest.raises(ForeignKeyConstraintViolationError):- await step_manager.log_step_async(- agent_id=sarah_agent.id,- provider_name="openai",- provider_category="base",- model="gpt-4o-mini",- model_endpoint="https://api.openai.com/v1",- context_window_limit=8192,- job_id="nonexistent_job",- usage=UsageStatistics(- completion_tokens=100,- prompt_tokens=50,- total_tokens=150,- ),- actor=default_user,- project_id=sarah_agent.project_id,- )--def test_list_tags(server: SyncServer, default_user, default_organization):"""Test listing tags functionality."""# Create multiple agents with different tags