Skip to content

Commit

Permalink
Merge 9ef5256 into e214768
Browse files Browse the repository at this point in the history
  • Loading branch information
sih4sing5hong5 committed May 10, 2019
2 parents e214768 + 9ef5256 commit 34ef1b7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion 匯入/management/commands/itaigi.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

class Command(匯入枋模):
help = 'https://itaigi.tw'
domain = 'db.itaigi.tw'
domain = 'itaigi.tw'
網址 = '/匯出資料'

公家內容 = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ def 轉物件(self, 漢羅, 羅):
yield 拆文分析器.建立句物件(漢羅, )
return
except 解析錯誤 as 錯誤:
print(錯誤)
print(錯誤, file=self.stderr)
try:
yield 拆文分析器.建立句物件()
return
except 解析錯誤 as 錯誤:
print(錯誤)
print(錯誤, file=self.stderr)
6 changes: 5 additions & 1 deletion 試驗/test教育部臺灣閩南語字詞頻調查工作.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import io

from django.core.management import call_command
from django.test.testcases import TestCase
from 臺灣言語服務.models import 訓練過渡格式
Expand All @@ -7,7 +9,9 @@ class KIPsu試驗(TestCase):

@classmethod
def setUpClass(cls):
call_command('教育部臺灣閩南語字詞頻調查工作')
with io.StringIO() as tshogoo:
call_command('教育部臺灣閩南語字詞頻調查工作', stderr=tshogoo)
print(tshogoo.getvalue()[:1000])
return super().setUpClass()

def test數量(self):
Expand Down

0 comments on commit 34ef1b7

Please sign in to comment.