-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
when "disabled", keyring uses a "null" keyring and should be unavaila… #5251
Conversation
@lakinwecker can you add some regression test coverage for this? |
@abn I looked for tests related to this stuff and failed to find any. Are there any other unit tests that do things similarily that I can follow to make tests? If so, I can try and add them, yes. |
@lakinwecker Tests are in test_password_manager.py. Probably, you should add two tests similar to poetry/tests/utils/test_password_manager.py Lines 190 to 195 in 15f6ec1
one with a simple null and one with a chained null. (And maybe you should rename the fixture Lines 109 to 127 in 15f6ec1
|
|
Alright, the mocks were wrong for those chainer tests. I fixed them and now the tests fail if I change the name of the 'bad' keyrings in the Is there documentation I should also update? |
I fixed the formatting issues, I'm happy to squash the commits if you prefer. Otherwise let me know if there is anything else you need for this to be reviewed. |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
…ble.
Pull Request Check List
Resolves: #5250
I didn't see any tests or docs for this part of the code, happy to update them as required.