when "disabled", keyring uses a "null" keyring and should be unavaila…#5251
when "disabled", keyring uses a "null" keyring and should be unavaila…#5251radoering merged 6 commits intopython-poetry:masterfrom
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.