Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
obfusk committed Dec 14, 2023
1 parent 2c553c5 commit aa0636f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ test: all test-js
$(PYTHON) -m jiten.kana $(VERBOSE) --doctest
$(PYTHON) -m jiten.kanji $(VERBOSE) --doctest
$(PYTHON) -m jiten.misc $(VERBOSE) --doctest
! test -e nonfree-data/pitch || \
$(PYTHON) -m jiten.pitch $(VERBOSE) --doctest
$(PYTHON) -m jiten.sentences $(VERBOSE) --doctest

Expand All @@ -47,6 +48,7 @@ coverage: tmp-html
$(PYCOV) -a -m jiten.kana --doctest
$(PYCOV) -a -m jiten.kanji --doctest
$(PYCOV) -a -m jiten.misc --doctest
! test -e nonfree-data/pitch || \
$(PYCOV) -a -m jiten.pitch --doctest
$(PYCOV) -a -m jiten.sentences --doctest
$(PYTHON) -mcoverage html
Expand Down
7 changes: 4 additions & 3 deletions jiten/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@
Web interface.
>>> import re
>>> import os, re
>>> have_nonfree = os.path.exists("nonfree-data/pitch")
>>> app.testing = True
>>> client = app.test_client()
Expand All @@ -43,9 +44,9 @@
>>> d = get("/jmdict?query=kitten&word=yes")
200 OK
>>> "こꜛねꜜこ" in d
>>> "こꜛねꜜこ" in d or not have_nonfree
True
>>> "koꜛneꜜko" in d
>>> "koꜛneꜜko" in d or not have_nonfree
True
>>> "kitten" in d
True
Expand Down

0 comments on commit aa0636f

Please sign in to comment.