You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Improve REST API unit-test coverage with request assertions and parameterized quote tests #257
Several REST API unit tests currently verify only response types. They do not verify that the expected request body, query parameters, HTTP method, and URL are sent correctly.
Proposed changes
1. Add request assertions
Update the REST API tests in tests/unit/test_connect.py to assert request details for:
historical_data
trigger_range
convert_position
place_mf_order
cancel_mf_order
place_mf_sip
modify_mf_sip
cancel_mf_sip
The tests should verify:
HTTP method
Request URL
Request body or query parameters
Boolean and optional parameter serialization
URL path parameters such as order_id and sip_id
2. Add parameterized quote tests
Add parameterized tests for:
quote
ohlc
ltp
Each test should cover both supported calling styles:
Hi @VEERESH069 , I'd like to work on this. I'll add request assertions for the 8 API methods listed and parameterized tests for quote, ohlc, and ltp. Will submit a PR shortly.
Activity
Almaryj1 commentedon Nov 12, 2026
Hi @VEERESH069 , I'd like to work on this. I'll add request assertions for the 8 API methods listed and parameterized tests for quote, ohlc, and ltp. Will submit a PR shortly.
Almaryj1 commentedon Nov 12, 2026
@VEERESH069 I've submitted a PR for this: #259