Skip to content

Commit e1a9342

Browse files
Cypher1radoering
authored andcommitted
Add assertion that the command under test is the expected UpdateCommand type
1 parent afce28d commit e1a9342

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/console/commands/test_update.py

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import pytest
66

77
from tests.helpers import get_package
8+
from poetry.console.commands.update import UpdateCommand
89

910

1011
if TYPE_CHECKING:
@@ -92,6 +93,7 @@ def test_update_sync_option_is_passed_to_the_installer(
9293
The --sync option is passed properly to the installer from update.
9394
"""
9495
tester = command_tester_factory("update", poetry=poetry_with_outdated_lockfile)
96+
assert isinstance(tester.command, UpdateCommand)
9597
mocker.patch.object(tester.command.installer, "run", return_value=1)
9698

9799
tester.execute("--sync")

0 commit comments

Comments
 (0)