Repository navigation
test: add unit tests for market data, MF orders, and SIP operations - #255
Open
deolreet21 wants to merge 1 commit into
Open
deolreet21 wants to merge 1 commit into
deolreet21 wants to merge 1 commit into
Conversation
Adds 11 tests covering quote, OHLC, LTP, historical data, trigger range, position conversion, MF order/cancel, and MF SIP place/modify/cancel. Also adds missing mock response path mappings in utils.py.
Author
|
Hi @ranjanrak, could you please approve the CI workflows for this PR? This adds 11 missing unit tests for market data, MF order, and SIP methods, along with missing mock response path mappings in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #254
Summary
tests/unit/test_connect.pycoveringquote,ohlc,ltp,historical_data,trigger_range,convert_position,place_mf_order,cancel_mf_order,place_mf_sip,modify_mf_sip,cancel_mf_siptests/helpers/utils.pyfor routes that had no entry despite the JSON files existing in thekiteconnect-mockssubmoduleWhy test_connect.py and not a new file
The repo has one test file per concern:
test_connect.py— all REST API methods onKiteConnecttest_exceptions.py— exception class behaviourtest_kite_object.py— object construction and configurationtest_ticker.py—KiteTickerWebSocket clientAll 11 new tests cover REST API methods on the
KiteConnectHTTP client — the same classtest_connect.pyalready tests. Creating a separate file would split tests for the same class across two files with no principled distinction, so the tests are appended to the existing file.Test run