6c9c7fe7f3
CI / integration tests (3.13) (push) Failing after 1s
Commit lint / pull request title (push) Has been skipped
Docs / links (push) Failing after 1s
CI / unit tests (3.13) (push) Failing after 1s
CI / lint (push) Failing after 1s
CI / integration tests (push) Failing after 1s
CI / package build (push) Failing after 1s
Commit lint / commit messages (push) Failing after 1s
CI / unit tests (push) Failing after 1s
30 lines
952 B
Python
30 lines
952 B
Python
"""EverOS playable demo story contracts."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from everos.entrypoints.tui.demo.data import (
|
|
DEFAULT_MEMORY_SEED,
|
|
DEFAULT_QUERY,
|
|
build_demo_story,
|
|
)
|
|
|
|
|
|
def test_demo_story_preserves_prompted_memory_and_query() -> None:
|
|
story = build_demo_story(
|
|
"I keep my Monday design review notes in Notion.",
|
|
"Where are my Monday review notes?",
|
|
)
|
|
|
|
assert story.owner == "you"
|
|
assert story.memory == "I keep my Monday design review notes in Notion."
|
|
assert story.query == "Where are my Monday review notes?"
|
|
assert story.answer == "I keep my Monday design review notes in Notion."
|
|
assert story.source_filename == "episode-demo.md"
|
|
assert story.fact_filename == "atomic_fact-demo.md"
|
|
|
|
|
|
def test_demo_story_keeps_default_yosemite_success_moment() -> None:
|
|
story = build_demo_story(DEFAULT_MEMORY_SEED, DEFAULT_QUERY)
|
|
|
|
assert story.answer == "Yosemite every spring"
|