Skip to content

Commit d161abd

Browse files
committed
fix mypy in the tests file
1 parent a846afe commit d161abd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_shell_command.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ def test__is_venv_activated(
9090

9191
def test_is_not_venv(tester: CommandTester, mocker: MockerFixture) -> None:
9292
shell_activate = mocker.patch("poetry_plugin_shell.shell.Shell.activate")
93-
tester.command.env.is_venv = lambda: False
93+
94+
assert isinstance(tester.command, ShellCommand)
95+
mocker.patch.object(tester.command.env, "is_venv", new=lambda: False)
9496

9597
tester.execute()
9698
assert isinstance(tester.command, ShellCommand)

0 commit comments

Comments
 (0)