test(e2e): enforce autospec=True on all remaining patch and patch.object calls

This commit is contained in:
2026-04-27 10:49:07 +02:00
parent 4de087ae45
commit 9ad49500f9
7 changed files with 54 additions and 41 deletions

View File

@@ -316,7 +316,7 @@ def test_feed_loop_deep_engagement(mock_device, mock_cognitive_stack):
patch("GramAddict.core.bot_flow._align_active_post", return_value=False),
patch("GramAddict.core.bot_flow._humanized_scroll"),
patch("GramAddict.core.bot_flow._humanized_click") as mock_click,
patch("GramAddict.core.stealth_typing.ghost_type") as mock_type,
patch("GramAddict.core.stealth_typing.ghost_type", autospec=True) as mock_type,
):
mock_extract.return_value = {"username": "legit_user", "description": "test image", "caption": ""}
mock_instance = MockTelepathic.get_instance.return_value