]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Add test for #942
authorAarni Koskela <akx@iki.fi>
Fri, 20 Jan 2023 14:24:59 +0000 (16:24 +0200)
committerAarni Koskela <akx@iki.fi>
Fri, 20 Jan 2023 14:41:36 +0000 (16:41 +0200)
tests/test_numbers.py

index 04a186510ef27a0150ab5259ed52de8eb6cd47cd..88df37619cc3441d8596ae9f6771b0fda300e8cc 100644 (file)
@@ -300,6 +300,10 @@ def test_get_territory_currencies():
 
     assert numbers.get_territory_currencies('QO', date(2013, 1, 1)) == []
 
+    # Croatia uses Euro starting in January 2023; this is in CLDR 42.
+    # See https://github.com/python-babel/babel/issues/942
+    assert 'EUR' in numbers.get_territory_currencies('HR', date(2023, 1, 1))
+
 
 def test_get_decimal_symbol():
     assert numbers.get_decimal_symbol('en_US') == '.'