Skip to content

test: cover flask and connexion request and response extractors - #141

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

cvas22 merged 1 commit into
masterfrom
test/137-flask-connexion-coverage

Conversation

@cvas22

@cvas22 cvas22 commented Oct 24, 2026

Copy link
Copy Markdown
Collaborator

Part of #137 (item 6).

Adds tests/test_flask_extractors.py (request log fields, basic-auth remote user, non-Flask app rejected, no current request / correlation id outside a request context, header fallback) and tests/test_connexion_extractors.py (extractor and response-extractor methods with stand-in request/response objects, non-Connexion app rejected).

Coverage (this branch alone, on master): Flask 87% -> 96%, Connexion 78% -> 91%.

Tested: Python 3.14.6 on Windows; 107 passed (unit suite excluding smoke tests and gunicorn). The Connexion tests use stand-in objects rather than a running Connexion app; the Connexion 3 request-context behaviour stays covered by test_correlation_outside_request.py. Not run on other Python versions.

Test remote user, header fallback, correlation id handling outside a
request context, request log fields and app validation for the Flask
and Connexion integrations.

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 54 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: d740fa64-ea3e-45b4-855a-b14f4835dfeb
Commits

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

Files selected for processing: 2
  • tests/test_connexion_extractors.py
  • tests/test_flask_extractors.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 549176a 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