Skip to content

Commit 2757511

Browse files
committed
Fixed i18n tests
Our i18n tests were relying on a bug in `iso638-lang` that has been fixed in v2.4.0 https://github.com/LBeaudoux/iso639/releases/tag/v2.4.0 > Fixed missing ISO 639-2/T for groups of languages. This fixes the test and bumps the dependency req to 2.4.0+
1 parent 335d527 commit 2757511

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ requires-python = ">=3.8,<3.13"
88
description = "Collection of python tools to re-use common code across scrapers"
99
readme = "README.md"
1010
dependencies = [
11-
"iso639-lang>=2.2.3,<3.0",
11+
"iso639-lang>=2.4.0,<3.0",
1212
"requests>=2.25.1,<3.0",
1313
"colorthief==0.2.1",
1414
"python-resize-image>=1.1.19,<1.2",

tests/i18n/test_i18n.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@
8181
{
8282
"iso-639-1": "",
8383
"iso-639-2b": "afa",
84-
"iso-639-2t": "",
84+
"iso-639-2t": "afa",
8585
"iso-639-3": "",
8686
"iso-639-5": "afa",
8787
"english": "Afro-Asiatic languages",
88-
"iso_types": ["part2b", "part5"],
88+
"iso_types": ["part2b", "part2t", "part5"],
8989
"querytype": "purecode",
9090
"query": "afa",
9191
"native": "Afro-Asiatic languages",
@@ -96,7 +96,7 @@
9696
{
9797
"iso-639-1": "",
9898
"iso-639-2b": "afa",
99-
"iso-639-2t": "",
99+
"iso-639-2t": "afa",
100100
"iso-639-3": "",
101101
"iso-639-5": "afa",
102102
"english": "Afro-Asiatic languages",

0 commit comments

Comments
 (0)