Exemple #1
0
def test_get_profile_name_from_env(monkeypatch):
    monkeypatch.setenv('KOJI_PROFILE', 'fakekoji')
    assert get_profile_name(None) == 'fakekoji'
Exemple #2
0
def test_get_profile_name_error():
    with pytest.raises(ValueError) as e:
        get_profile_name(None)
    assert 'KOJI_PROFILE environment variable' in str(e.value)
Exemple #3
0
def test_get_profile_name():
    assert get_profile_name('fakekoji') == 'fakekoji'