We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a846afe commit d161abdCopy full SHA for d161abd
tests/test_shell_command.py
@@ -90,7 +90,9 @@ def test__is_venv_activated(
90
91
def test_is_not_venv(tester: CommandTester, mocker: MockerFixture) -> None:
92
shell_activate = mocker.patch("poetry_plugin_shell.shell.Shell.activate")
93
- tester.command.env.is_venv = lambda: False
+
94
+ assert isinstance(tester.command, ShellCommand)
95
+ mocker.patch.object(tester.command.env, "is_venv", new=lambda: False)
96
97
tester.execute()
98
assert isinstance(tester.command, ShellCommand)
0 commit comments