-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
9441 conch public key #1010
9441 conch public key #1010
Conversation
This makes the implementation match its docstring, which says that Key.public() may return the same object if it is already a public key.
Codecov Report
@@ Coverage Diff @@
## trunk #1010 +/- ##
==========================================
+ Coverage 91.88% 91.89% +<.01%
==========================================
Files 842 842
Lines 150197 150198 +1
Branches 13138 13137 -1
==========================================
+ Hits 138008 138018 +10
+ Misses 10096 10091 -5
+ Partials 2093 2089 -4 |
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.
Thanks for fixing this.
Looks good to merge.
I have reverted the fix and run only the tests and I can see a failure.
In terms of testing, I was expecting to see another test with dedicated docstring like
def test_publicAlreadyPublic():
"""
For public keys, it returns the same instance.
"""
publicRSAKey = keys.Key.fromString(keydata.publicRSA_openssh)
self.assertIs(publicRSAKey, publicRSAKey.public())
|
@adiroiban : I think that having |
True.. Thanks. Merged |
Contributor Checklist: