# Path: autorelease/tag.py
# LANGUAGE_ALLOWLIST = [
#     "dotnet",
#     "ruby",
# ]
# ORGANIZATIONS_TO_SCAN = ["googleapis", "GoogleCloudPlatform"]
# def run_releasetool_tag(lang: str, gh: github.GitHub, pull: dict) -> TagContext:
# def process_issue(
#     kokoro_session, gh: github.GitHub, issue: dict, result: reporter.Result
# ) -> None:
# def main(github_token: str, kokoro_credentials: str) -> reporter.Reporter:


import requests_mock
from unittest.mock import patch, Mock
from autorelease import tag
# 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.tag.process_issue")
@patch("autorelease.github.GitHub.list_org_issues")
@patch("autorelease.kokoro.make_authorized_session")
def test_no_issues(make_authorized_session, list_org_issues, process_issue):
    list_org_issues.return_value = []


# Path: autorelease/tag.py
# LANGUAGE_ALLOWLIST = [
#     "dotnet",
#     "ruby",
# ]
# ORGANIZATIONS_TO_SCAN = ["googleapis", "GoogleCloudPlatform"]
# def run_releasetool_tag(lang: str, gh: github.GitHub, pull: dict) -> TagContext:
# def process_issue(
#     kokoro_session, gh: github.GitHub, issue: dict, result: reporter.Result
# ) -> None:
# def main(github_token: str, kokoro_credentials: str) -> reporter.Reporter:


# Path: tests/test_autorelease_tag.py
import requests_mock
from unittest.mock import patch, Mock
from autorelease import tag

# 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.tag.process_issue")
@patch("autorelease.github.GitHub.list_org_issues")
@patch("autorelease.kokoro.make_authorized_session")
def test_no_issues(make_authorized_session, list_org_issues, process_issue):
    list_org_issues.return_value = []


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