From 073ac5283d64a7157eeaa3e88bdecd99efb8da1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felipe=20Ba=C3=B1ados=20Schwerter?= Date: Thu, 15 Aug 2024 23:31:56 +0000 Subject: [PATCH] Added new orthography tests, required to keep current standard as default instead of adding the accented ys by default. --- .../tests/CreeDictionary_tests/test_orth_cookie.py | 2 +- src/CreeDictionary/tests/test_usage_of_morphodict.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/CreeDictionary/tests/CreeDictionary_tests/test_orth_cookie.py b/src/CreeDictionary/tests/CreeDictionary_tests/test_orth_cookie.py index 8f4e7b228..e69c4dd90 100644 --- a/src/CreeDictionary/tests/CreeDictionary_tests/test_orth_cookie.py +++ b/src/CreeDictionary/tests/CreeDictionary_tests/test_orth_cookie.py @@ -10,7 +10,7 @@ from CreeDictionary.morphodict.orthography import ORTHOGRAPHY -@pytest.mark.parametrize("orth", ["Cans", "Latn", "Latn-x-macron"]) +@pytest.mark.parametrize("orth", ["Cans", "Latn", "Latn-x-macron","Latn-y", "Latn-x-macron-y"]) def test_can_set_orth_cookie(orth, client, change_orth_url): """ Test that POSTing to the URL actually sets the orthography. diff --git a/src/CreeDictionary/tests/test_usage_of_morphodict.py b/src/CreeDictionary/tests/test_usage_of_morphodict.py index 4648108af..195641b9a 100644 --- a/src/CreeDictionary/tests/test_usage_of_morphodict.py +++ b/src/CreeDictionary/tests/test_usage_of_morphodict.py @@ -7,15 +7,15 @@ def test_morphodict_orthography(): - assert ORTHOGRAPHY.default == "Latn" + assert ORTHOGRAPHY.default == "Latn-y" assert {"Latn", "Cans", "Latn-x-macron"} <= set(ORTHOGRAPHY.available) @pytest.mark.parametrize( "code,name,example", [ - ("Latn", "SRO", "amiskwaciy-wâskahikanihk"), - ("Latn-x-macron", "SRO", "amiskwaciy-wāskahikanihk"), + ("Latn-y", "SRO", "amiskwaciy-wâskahikanihk"), + ("Latn-x-macron-y", "SRO", "amiskwaciy-wāskahikanihk"), ("Cans", "Syllabics", "ᐊᒥᐢᑿᒋᐩ ᐚᐢᑲᐦᐃᑲᓂᕽ"), ], )