Пример #1
0
 def test_main_merge(self, mock_merge: Any, mock_parse_args: Any, mock_gh_get_info: Any) -> None:
     trymerge_main()
     mock_merge.assert_called_once_with(mock.ANY,
                                        mock.ANY,
                                        dry_run=mock.ANY,
                                        force=False,
                                        comment_id=mock.ANY,
                                        on_green=False,
                                        land_checks=False,
                                        mandatory_only=False)
Пример #2
0
 def test_main_revert(self, mock_revert: Any, mock_parse_args: Any, gh_get_pr_info: Any) -> None:
     trymerge_main()
     mock_revert.assert_called_once()