Skip to content

unit test#29

Merged
JaredforReal merged 1 commit into
mainfrom
bugfix
May 2, 2026
Merged

unit test#29
JaredforReal merged 1 commit into
mainfrom
bugfix

Conversation

@JaredforReal
Copy link
Copy Markdown
Owner

No description provided.

Signed-off-by: JaredforReal <w13431838023@gmail.com>
Copilot AI review requested due to automatic review settings May 2, 2026 18:36
@JaredforReal JaredforReal merged commit 9771e6f into main May 2, 2026
5 checks passed
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the WebUI/FastAPI test context fixture to better match DaemonContext by including a session_mgr, ensuring /api/status (and related endpoints) can access ctx.session_mgr.active_count during tests.

Changes:

  • Add a session_mgr stub to the webui_ctx fixture in tests/test_webui.py.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tests/test_webui.py
Comment on lines +48 to +55
session_mgr = MagicMock(active_count=0)
ctx = SimpleNamespace(
config=config,
store=store,
bus=bus,
mailbox=mailbox,
metrics=metrics,
session_mgr=session_mgr,
@JaredforReal JaredforReal deleted the bugfix branch May 2, 2026 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants