-
Notifications
You must be signed in to change notification settings - Fork 77
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
SorrTask1075_Unit_test_hpandas_dassert_valid_remap #1080
SorrTask1075_Unit_test_hpandas_dassert_valid_remap #1080
Conversation
Can you please give me suggestions on how to improve on this one @sonaalKant, @samarth9008 mainly test3 and test4 as I was expecting an error raise but it went through. Also, what other input variations could be made, especially with |
Can you show the error while running test 3 and 4? Would be nice if you can explain what condition you are trying to check in those tests. |
I would check all the conditions, assertions where the function would break and check those conditions. |
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.
LGTM. One comment about checking the PR after the linter
@samarth9008, I just wanted to make sure that my method in test 3 was correct and I didn't have any error in test4, but I was curious regarding the input as it had duplicate keys in the dictionary and was expecting some error.
|
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.
LGTM
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.
Lets add tests for this 2 lines as well
hdbg.dassert_isinstance(to_remap, list)
hdbg.dassert_isinstance(remap_dict, dict)
Awaiting further review/ instructions on this one. @samarth9008, @gpsaggese, @sonaalKant , @DanilYachmenev |
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.
Some nits from my side.
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.
Did we add check for this LOC - hdbg.dassert_not_intersection(remap_dict.values(), to_remap)
That was my initial question regarding the input, the function mentions row/ columns to map, the |
What's the next step here? IMO it's best to merge and do a follow up PR. We don't want PRs on deck for 2 weeks. A PR should be merged in 1-2 days max. |
I think that would be appropriate. I have been waiting on review from others and active response for a very long time on this PR. |
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.
LG merging.
The blockage was from my side as I have multiple things going on so couldn't find time to review these PRs. |
#1075