mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-05-05 00:08:24 +00:00
- Move all unit tests from tests/ to tests/unittest/ - Add tests/e2e/ directory for end-to-end tests - Update conftest.py for new test structure - Add new tests for auth dependencies, policies, route injection - Add new tests for run callbacks, create store, execution artifacts - Remove obsolete tests for deleted persistence layer Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
27 lines
584 B
Python
27 lines
584 B
Python
from __future__ import annotations
|
|
|
|
from deerflow.runtime.runs.internal.execution.artifacts import build_run_artifacts
|
|
|
|
|
|
class _Agent:
|
|
pass
|
|
|
|
|
|
def test_build_run_artifacts_uses_store_as_reference_store():
|
|
store = object()
|
|
|
|
def agent_factory(*, config):
|
|
return _Agent()
|
|
|
|
artifacts = build_run_artifacts(
|
|
thread_id="thread-1",
|
|
run_id="run-1",
|
|
checkpointer=None,
|
|
store=store,
|
|
agent_factory=agent_factory,
|
|
config={},
|
|
bridge=None, # type: ignore[arg-type]
|
|
)
|
|
|
|
assert artifacts.reference_store is store
|