Skip to content

Test : Assert Rest API request deails - #258

Open
VEERESH069 wants to merge 2 commits into
zerodha:masterfrom
VEERESH069:master
Open

VEERESH069 wants to merge 2 commits into
zerodha:masterfrom
VEERESH069:master

Conversation

@VEERESH069

Copy link
Copy Markdown

Summary

Improve REST API unit-test coverage by asserting request details instead of only response values.

Changes

  • Assert HTTP methods and request URLs.
  • Verify request bodies for MF orders, MF SIPs, and position conversion.
  • Verify URL path parameters such as order_id and sip_id.
  • Verify query parameters for historical data and trigger ranges.
  • Cover boolean serialization for historical data.
  • Add parameterized positional and legacy list-style tests for quote, ohlc, and ltp.

Validation

  • Python syntax check passed.
  • Tests use the existing responses mock library.
  • No live API credentials or network requests are required.
  • Full pytest execution was not run because twisted is not installed.

Copilot AI balanced review requested due to automatic review settings November 12, 2026 08:13

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

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