# Path: gg/utils.py
# def get_repo(here="."):
# def get_repo_name():
# def error_out(msg, raise_abort=True):
# def success_out(msg):
# def warning_out(msg):
# def info_out(msg):
# def is_github(data):
# def is_bugzilla(data):
# def get_default_branch(repo, origin_name):


import tempfile
import click
import pytest
import git
from gg import utils




def test_get_repo(mocker):
    this_repo = utils.get_repo()
    assert isinstance(this_repo, git.Repo)


def test_get_repo_never_found(mocker):
    with pytest.raises(git.InvalidGitRepositoryError):
        utils.get_repo(tempfile.gettempdir())


def test_get_repo_name():

# Path: gg/utils.py
# def get_repo(here="."):
# def get_repo_name():
# def error_out(msg, raise_abort=True):
# def success_out(msg):
# def warning_out(msg):
# def info_out(msg):
# def is_github(data):
# def is_bugzilla(data):
# def get_default_branch(repo, origin_name):


# Path: tests/test_utils.py
import tempfile
import click
import pytest
import git
from gg import utils





def test_get_repo(mocker):
    this_repo = utils.get_repo()
    assert isinstance(this_repo, git.Repo)


def test_get_repo_never_found(mocker):
    with pytest.raises(git.InvalidGitRepositoryError):
        utils.get_repo(tempfile.gettempdir())


def test_get_repo_name():

    this_repo_name = utils.get_repo_name()