Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BoboTiG committed Nov 22, 2020
1 parent 5780961 commit 3f4ef0d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ def clean(word: str, text: str, locale: str) -> str:
>>> clean("foo", "<span style='color:black'>[[♣]]</span>", "fr")
"<span style='color:black'>♣</span>"
>>> clean("foo", "{{foo|{{bar}}|123}}", "fr")
!! Missing 'foo' template support for word 'foo'
''
>>> clean("foo", "<ref>{{Import:CFC}}</ref>", "fr")
''
Expand Down Expand Up @@ -383,8 +384,8 @@ def transform(word: str, template: str, locale: str) -> str:
'Lathyrus aphaca'
>>> transform("foo", "grammaire|fr", "fr")
'<i>(Grammaire)</i>'
>>> transform("foo", "conj|grp=1|fr", "fr", debug=True)
!! Missing template support for 'conj' (word is 'foo')
>>> transform("foo", "conj|grp=1|fr", "fr")
!! Missing 'conj' template support for word 'foo'
''
"""

Expand Down

0 comments on commit 3f4ef0d

Please sign in to comment.