-
-
Notifications
You must be signed in to change notification settings - Fork 53
Fixes for failing unit tests #64
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
Fixes for failing unit tests #64
Conversation
Merge from head repository
|
Just checking... anything you need from me for this pull request? |
tests/test_anon.py
Outdated
| replaced_failed = [] | ||
| deleted_failed = [] | ||
| emptied_failed = [] |
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.
I'm not fond of removing tests because they fail. Let's leave them fail to remind us of the problem that needs fixing.
If this prevents merging, I'll change the related setting
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.
Agreed! These were remnants from code no longer needed, since all (unexpectedly) failing tests are now removed. I have removed these lines in 2d53d34
| if ( | ||
| len(tt) == 2 and tt in orig_ds | ||
| ): # sourcery skip: merge-nested-ifs, no-conditionals-in-tests |
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.
This formatting feels weird, is it because of Flake8 ?
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.
This comment suppresses couple of errors from Sourcery plugin: https://sourcery.ai/
|
@smjoshiatglobus Thank you for your work and sorry for the delay |
merge from head repo. Fix for unit test failing is in #64
Thank you, @pchoisel, for the review. I have made a couple of changes and responded to your comments. Please re-review. |
|
The changes look good to me ! |
black formatting black formatting
…izer into fix_unit_test
I am trying to learn squashing and worried that I am making it worse! I tried |
|
I can see that the commit number increased instead of decreasing ^^
You can at all moment abort the rebase by doing |
I create a separate branch to test this. I followed the steps you mentioned above. Instead of There were several merge conflicts that I had to resolve. I have created draft PR #65 to show the changes. It still looks very clumsy! Sorry, I still don't know why there were so many merge conflicts. I also created draft PR #66 with squashed commits. I am fine if you prefer to merge PR #66 and close this one. |
|
Code merged in #66 |
Main changes:
SQfor unit tests. This has fixed some failing unit tests and I managed to remove several test files from the exclusion list.RawDataElementtype of elements, which areNamedTuple, issue Tag replacement fails during anonymization for structured reports #63Other changes, mostly for development support:
Pipfilefor optional development setup usingpipenvcspelland added custom dictionary.testsandexamplefolders usingblack