-
Notifications
You must be signed in to change notification settings - Fork 23
Implement the deprecated dependency finder #81
Implement the deprecated dependency finder #81
Conversation
| package_name) | ||
| deprecated_deps = [] | ||
|
|
||
| for dep_name in dependency_info.keys(): |
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.
Maybe just "for dep_name in dependency_info:"
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.
Done.
| "OutdatedDependency<'pip', HIGH_PRIORITY>", | ||
| "OutdatedDependency<'ply', HIGH_PRIORITY>") | ||
|
|
||
| self._store = mock.Mock() |
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.
Maybe it is better to pass in an autospec, otherwise it is possible that you have a typo in your method name, and the test still pass.
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.
Done.
| finder = deprecated_dep_finder.DeprecatedDepFinder() | ||
|
|
||
| self.assertEqual(finder.py_version, '3') | ||
| self.assertTrue( |
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.
assertIsInstance is available after Python 3.2. I am not sure what Python versions should we support, but definitely use that if it is possible.
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.
Done.
ylil93
left a comment
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
Fix #65
This PR also includes some refactoring of the existing code which moves some functions to common utils file.