-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #73 from Taiwanese-Corpus/Siu-iong
Siù-iong fix #36
- Loading branch information
Showing
8 changed files
with
105 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM i3thuan5/tai5-uan5_gian5-gi2_kang1-ku7 | ||
MAINTAINER i3thuan5 | ||
|
||
ARG TOX_ENV | ||
|
||
RUN apt-get update && apt-get install -y ffmpeg | ||
WORKDIR /opt/hue7jip8 | ||
RUN pip install tox | ||
COPY . . | ||
RUN tox --sitepackages -e ${TOX_ENV} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from django.core.management import call_command | ||
from django.test.testcases import TestCase | ||
from 臺灣言語服務.models import 訓練過渡格式 | ||
|
||
|
||
class 教典音檔試驗(TestCase): | ||
@classmethod | ||
def setUpClass(cls): | ||
call_command('教典音檔0下載', 'dropbox') | ||
call_command('教典音檔1轉檔', '--匯入幾筆', '100') | ||
call_command('教典音檔2匯入', '--匯入幾筆', '100') | ||
return super().setUpClass() | ||
|
||
def test句數正確(self): | ||
self.assertGreater(訓練過渡格式.資料數量(), 80) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from django.core.management import call_command | ||
from django.test.testcases import TestCase | ||
from 臺灣言語服務.models import 訓練過渡格式 | ||
|
||
|
||
class 新北市例句試驗(TestCase): | ||
@classmethod | ||
def setUpClass(cls): | ||
call_command('新北市900例句') | ||
return super().setUpClass() | ||
|
||
def test句數正確(self): | ||
self.assertEqual(訓練過渡格式.資料數量(), 300) |