diff --git a/tests/trestlebot/entrypoints/test_autosync.py b/tests/trestlebot/entrypoints/test_autosync.py index 2df950cf..dfabcae3 100644 --- a/tests/trestlebot/entrypoints/test_autosync.py +++ b/tests/trestlebot/entrypoints/test_autosync.py @@ -88,9 +88,9 @@ def test_with_target_branch(valid_args_dict: Dict[str, str], caplog: Any) -> Non # Patch is_github_actions since these tests will be running in # GitHub Actions - with patch("trestlebot.entrypoints.entrypoint_base.is_github_actions") as mock_check, patch( - "sys.argv", ["trestlebot", *args_dict_to_list(args_dict)] - ): + with patch( + "trestlebot.entrypoints.entrypoint_base.is_github_actions" + ) as mock_check, patch("sys.argv", ["trestlebot", *args_dict_to_list(args_dict)]): mock_check.return_value = False with pytest.raises(SystemExit):