Example #1
0
def test_is_git_not_configured(noconfgit_mock):  # noqa
    assert not info.is_git_configured()
Example #2
0
def test_is_git_configured(git_mock):  # noqa
    assert info.is_git_configured()
Example #3
0
def test_git_is_configured_via_env_vars(monkeypatch):
    monkeypatch.setenv("GIT_AUTHOR_NAME", "John Doe")
    monkeypatch.setenv("GIT_AUTHOR_EMAIL", "*****@*****.**")
    assert info.is_git_configured()
Example #4
0
def test_is_git_not_configured(noconfgit_mock):
    assert not info.is_git_configured()
Example #5
0
def test_is_git_configured(git_mock):
    assert info.is_git_configured()