Skip to content

Add router context manager for asserting call counts - #330

Open
nickita-khylkouski wants to merge 1 commit into
lundberg:masterfrom
nickita-khylkouski:feat/assert-call-count-248
Open

nickita-khylkouski wants to merge 1 commit into
lundberg:masterfrom
nickita-khylkouski:feat/assert-call-count-248

Conversation

@nickita-khylkouski

Copy link
Copy Markdown

Summary

  • add a Router.assert_call_count context manager for named routes
  • count calls made only within the context while preserving existing call history
  • expose the helper through the module-level API

Closes #248

Tests

  • .venv/bin/pytest -q (330 passed, 2 skipped, 100% coverage)
  • pre-commit hooks for all changed files

This branch has not been deployed

No deployments
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.

Add router context manager utility for asserting call count

1 participant