Skip to content
This repository was archived by the owner on Nov 13, 2026. It is now read-only.

test: give the info cog test context an async defer - #128

Merged
rnxm merged 1 commit into
devfrom
test/info-defer-fixture
Nov 12, 2026
Merged

rnxm merged 1 commit into
devfrom
test/info-defer-fixture

Conversation

@rnxm

@rnxm rnxm commented Nov 12, 2026

Copy link
Copy Markdown
Member

Two tests on dev fail after #126 and #127 merged together. #127 made info ip and info template call ctx.defer(), and #126's ctx fixture had no async defer, so both template tests raised TypeError.

This adds ctx.defer = AsyncMock() to the fixture. ruff format --check, ruff check, ty check and pytest all pass (411 passed).

🤖 Generated with Claude Code

#127 made info ip/template call ctx.defer(); #126's fixture predated it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rnxm
rnxm merged commit 479e716 into dev Nov 12, 2026
6 checks passed
@rnxm
rnxm deleted the test/info-defer-fixture branch November 12, 2026 11:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant