USe the system locale if the parameter default_language is not set while instanciating Ki18n
This commit is contained in:
@@ -116,7 +116,7 @@ def test_non_english_default_language(env):
|
||||
assert manager.t("greeting") == "Hallo"
|
||||
|
||||
|
||||
@pytest.mark.parametrize("code", ["!!", "", "de/DE", None])
|
||||
@pytest.mark.parametrize("code", ["!!", "", "de/DE", 42])
|
||||
def test_invalid_default_language_raises_value_error(env, code):
|
||||
env.install_defaults()
|
||||
with pytest.raises(ValueError, match="Invalid default language"):
|
||||
|
||||
Reference in New Issue
Block a user