Skip to content

test: add X-Request-ID middleware coverage#20

Merged
Shaivpidadi merged 1 commit into
devfrom
feat/test-request-id
Apr 22, 2026
Merged

test: add X-Request-ID middleware coverage#20
Shaivpidadi merged 1 commit into
devfrom
feat/test-request-id

Conversation

@Shaivpidadi

Copy link
Copy Markdown
Member

Summary

  • add tests/test_request_id.py to verify /api/v1/health returns an X-Request-ID header
  • assert the header value matches a UUIDv4
  • assert a fresh request ID is generated on each request

Validation

  • ./venv/bin/python -m pytest tests/test_request_id.py -v exercises both new assertions, but the command exits non-zero because the repo enforces a global --cov-fail-under=60 threshold even for narrow test selection
  • ./venv/bin/python -m pytest tests/ -v

@Shaivpidadi
Shaivpidadi merged commit 2a5b898 into dev Apr 22, 2026
4 checks passed
@Shaivpidadi
Shaivpidadi deleted the feat/test-request-id branch April 22, 2026 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant