We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 884adce commit 6c083d3Copy full SHA for 6c083d3
1 file changed
tests/test_cli.py
@@ -455,11 +455,6 @@ async def test_run_syntax_error(self):
455
456
# Create a mock hub
457
mock_hub = AsyncMock()
458
- mock_hub.run = AsyncMock(
459
- side_effect=subprocess.CalledProcessError(
460
- returncode=1, cmd="test", stderr=b"test"
461
- )
462
463
mock_hub.connect = AsyncMock()
464
465
# Set up mocks using ExitStack
@@ -470,7 +465,7 @@ async def test_run_syntax_error(self):
470
suffix=".py", mode="w+", delete=False, encoding="utf-8"
471
466
)
472
467
473
- temp.write("print('test')")
468
+ temp.write("syntax error")
474
469
temp_path = temp.name
475
stack.callback(os.unlink, temp_path)
476
0 commit comments