Skip to content

test: add Sanic and Quart unit tests - #140

Merged
cvas22 merged 1 commit into
masterfrom
test/137-sanic-quart-coverage
Oct 24, 2026
Merged

cvas22 merged 1 commit into
masterfrom
test/137-sanic-quart-coverage

Conversation

@cvas22

@cvas22 cvas22 commented Oct 24, 2026 •

Copy link
Copy Markdown
Collaborator

Part of #137 (items 1 and 2).

Adds tests/test_sanic.py and tests/test_quart.py using each framework's in-process test client: correlation id from header / generated, request log content, excluded URL patterns, and rejecting a non-app object. Adds sanic-testing to test-requirements.txt (the Sanic test client lives there).

Coverage: Sanic 39% -> 94%, Quart 64% -> 88%, total 80% -> 88%.

Tested: Python 3.14.6 on Windows (this branch is based on master alone), Sanic 25.12.1, Quart 0.23.1: 105 passed (unit suite excluding smoke tests and gunicorn). Not run on other Python versions in the CI matrix; Sanic's test client emits deprecation warnings on 3.14.

Cover correlation id handling, request instrumentation, URL exclusion and
app validation for the Sanic and Quart integrations using their test
clients, instead of relying only on the smoke tests.

Adds sanic-testing to the test requirements.

Refs #137

Signed-off-by: Srinivas Chippagiri <cvas22@gmail.com>
@qodo-code-review

Copy link
Copy Markdown

ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing

@coderabbitai

coderabbitai Bot commented Oct 24, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 55 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 45dd1d3f-30bc-4528-accd-aca018750266
Commits

Reviewing files that changed from the base of the PR and between c775fe3 and e2f3faa.

Files selected for processing: 3
  • test-requirements.txt
  • tests/test_quart.py
  • tests/test_sanic.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@cvas22
cvas22 merged commit 43f2509 into master Oct 24, 2026
16 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.

1 participant