# Path: autorelease/trigger.py
# LANGUAGE_ALLOWLIST = []
# ORGANIZATIONS_TO_SCAN = ["googleapis", "GoogleCloudPlatform"]
# CREATED_AFTER = "2021-04-01"
# def trigger_kokoro_build_for_pull_request(
#     kokoro_session,
#     gh: github.GitHub,
#     issue: dict,
#     result,
#     update_labels: bool = True,
#     use_allowlist: bool = True,
# ) -> None:
# def _parse_issue(pull_request_url: str) -> Tuple[str, int]:
# def trigger_single(
#     github_token: str, kokoro_credentials: str, pull_request_url: str
# ) -> reporter.Reporter:
# def main(github_token: str, kokoro_credentials: str) -> reporter.Reporter:


from unittest.mock import patch, Mock
from autorelease import trigger
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.




@patch("autorelease.trigger.trigger_kokoro_build_for_pull_request")
@patch("autorelease.github.GitHub.list_org_issues")
@patch("autorelease.kokoro.make_authorized_session")
def test_no_issues(
    make_authorized_session, list_org_issues, trigger_kokoro_build_for_pull_request
):
    list_org_issues.return_value = []


# Path: autorelease/trigger.py
# LANGUAGE_ALLOWLIST = []
# ORGANIZATIONS_TO_SCAN = ["googleapis", "GoogleCloudPlatform"]
# CREATED_AFTER = "2021-04-01"
# def trigger_kokoro_build_for_pull_request(
#     kokoro_session,
#     gh: github.GitHub,
#     issue: dict,
#     result,
#     update_labels: bool = True,
#     use_allowlist: bool = True,
# ) -> None:
# def _parse_issue(pull_request_url: str) -> Tuple[str, int]:
# def trigger_single(
#     github_token: str, kokoro_credentials: str, pull_request_url: str
# ) -> reporter.Reporter:
# def main(github_token: str, kokoro_credentials: str) -> reporter.Reporter:


# Path: tests/test_autorelease_trigger.py
from unittest.mock import patch, Mock
from autorelease import trigger

# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.




@patch("autorelease.trigger.trigger_kokoro_build_for_pull_request")
@patch("autorelease.github.GitHub.list_org_issues")
@patch("autorelease.kokoro.make_authorized_session")
def test_no_issues(
    make_authorized_session, list_org_issues, trigger_kokoro_build_for_pull_request
):
    list_org_issues.return_value = []


    trigger.main("github-token", "kokoro-credentials")