Skip to content

test: add smoke coverage for decorator docs snippet#71#74

Merged
aponysus merged 1 commit intoaponysus:mainfrom
zeel2104:docs-smoke-decorator-snippet
Mar 26, 2026
Merged

test: add smoke coverage for decorator docs snippet#71#74
aponysus merged 1 commit intoaponysus:mainfrom
zeel2104:docs-smoke-decorator-snippet

Conversation

@zeel2104
Copy link
Copy Markdown
Contributor

Summary

Adds smoke coverage for one more self-contained docs snippet in tests/test_docs_examples_verified.py.

What changed

  • added a smoke test for docs/snippets/decorator_retry.py
  • stubbed sync and async sleep paths so the snippet runs quickly and locally
  • asserted the expected sync-ok and async-ok output

Why

This expands the set of visibly verified docs examples and improves confidence in the snippets.

Verification

  • uv run pytest -o addopts="" tests/test_docs_examples_verified.py -k decorator_retry
  • full file also passes once the existing pyperf dev dependency is available for bench_retry.py

@aponysus
Copy link
Copy Markdown
Owner

LGTM. Thanks!

@aponysus aponysus merged commit 163fea7 into aponysus:main Mar 26, 2026
6 checks passed
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