Skip to content

Commit

Permalink
Added new orthography tests, required to keep current standard as def…
Browse files Browse the repository at this point in the history
…ault instead of adding the accented ys by default.
  • Loading branch information
fbanados committed Aug 15, 2024
1 parent 433799f commit 073ac52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions src/CreeDictionary/tests/test_usage_of_morphodict.py
Original file line number Diff line number Diff line change
Expand Up @@ -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", "ᐊᒥᐢᑿᒋᐩ ᐚᐢᑲᐦᐃᑲᓂᕽ"),
],
)
Expand Down

0 comments on commit 073ac52

Please sign in to comment.