-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add --sync CLI option to update subcommand #8931
Conversation
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.
Makes sense. Can you update the docs and add a test analogous to
poetry/tests/console/commands/test_install.py
Lines 158 to 169 in 776fcb8
def test_sync_option_is_passed_to_the_installer( | |
tester: CommandTester, mocker: MockerFixture | |
) -> None: | |
""" | |
The --sync option is passed properly to the installer. | |
""" | |
assert isinstance(tester.command, InstallerCommand) | |
mocker.patch.object(tester.command.installer, "run", return_value=1) | |
tester.execute("--sync") | |
assert tester.command.installer._requires_synchronization |
Sounds good. Will get to it soon. Thx |
pre-commit.ci autofix |
pre-commit.ci autofix |
for more information, see https://pre-commit.ci
Deploy preview for website ready! ✅ Preview Built with commit 80c282e. |
Thanks! |
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. |
Adds
--sync
to theupdate
subcommand to matchinstall
.