def test_get_default_language_unset(monkeypatch): monkeypatch.delenv("LANG", raising=False) assert tldr.get_default_language() is None
def test_get_default_language(language, expected, monkeypatch): monkeypatch.setenv("LANG", language) assert tldr.get_default_language() == expected