-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KaizenTask1077_Unit_test_dassert_timestamp_lt() #1093
KaizenTask1077_Unit_test_dassert_timestamp_lt() #1093
Conversation
No need as it must have been tested separately.
Yes
Could you clarify your question better? Will review when above quesitons are resolved. |
I haven't used dassert_lt as mentioned here. So is this the right way? Or do we use the dassert method I have added tests for none values |
Where do you want to use dassert_lt? |
I can by using mock but would imply breaking the rule of making the unit tests singular(testing on function at a time) and simple |
Also @samarth9008 can you give me another issue by the time you review this? |
No need to mock as we only use it for external calls Regarding
To test make sense? |
It makes sense |
Yes would be nice to increase the coverage. |
Also, would you mind reviewing rest of the PR too? |
I looked into the code and I had confusion how can we test both dassert_lt and dassert_timestamp_lt at the same time For coverage we can write unti test for dassert_lt(that too not necessary as I understand the code) |
As discussed with @samarth9008 , creating #1094 and #1095 for testing dassert_is_valid_timestamp and dassert_lt respectively |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Impressive first PR. GJ following all the process.
Few nits from my side.
… KaizenTask1077_Unit_test_dassert_timestamp_lt
f58c34e
to
ccfeaca
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 nit and LG
Created this PR for Issue #1077.
Changes Made:
Testing:
Ran code through pylint and pytest.
Questions:
@samarth9008 please let me know if you have any further suggestions