Skip to content

Commit

Permalink
add mac word wise test file
Browse files Browse the repository at this point in the history
  • Loading branch information
xxyzz committed Sep 1, 2021
1 parent 0a6b8f1 commit 9ee874a
Show file tree
Hide file tree
Showing 3 changed files with 254 additions and 2 deletions.
252 changes: 252 additions & 0 deletions tests/LanguageLayer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,252 @@
{
"glosses": [
[
1385,
5,
5811
],
[
1390,
1,
50054
],
[
1441,
2,
43313
],
[
1503,
4,
9074
],
[
1552,
2,
60185
],
[
1561,
1,
22173
],
[
1683,
3,
7469
],
[
1691,
1,
59909
],
[
1700,
4,
17752
],
[
1707,
3,
42551
],
[
1723,
3,
45857
],
[
1727,
4,
31159
],
[
1761,
4,
48832
],
[
1783,
3,
42700
],
[
1808,
3,
59890
],
[
1831,
4,
5010
],
[
1850,
5,
27276
],
[
1865,
5,
82125
],
[
1970,
4,
2299
],
[
2082,
4,
43867
],
[
2138,
5,
5398
],
[
2153,
3,
21542
],
[
2315,
4,
71086
],
[
2337,
4,
25332
],
[
2426,
4,
43890
],
[
2437,
4,
48832
],
[
2453,
5,
27276
],
[
2467,
5,
32945
],
[
2530,
2,
21159
],
[
2619,
3,
23023
],
[
2737,
1,
18764
],
[
2866,
1,
72360
],
[
2879,
3,
51602
],
[
2893,
4,
22906
],
[
3045,
2,
94844
],
[
3118,
4,
21345
],
[
3209,
1,
90686
],
[
3219,
2,
36180
],
[
3260,
5,
20448
],
[
3267,
5,
24009
],
[
3379,
1,
55160
],
[
3398,
1,
46930
]
],
"metadata": [
[
"acr",
"1984"
],
[
"targetLanguages",
"en"
],
[
"sidecarRevision",
"9"
],
[
"bookRevision",
"77528871"
],
[
"sourceLanguage",
"en"
],
[
"enDictionaryVersion",
"2016-09-14"
],
[
"enDictionaryRevision",
"57"
],
[
"enDictionaryId",
"kll.en.en"
],
[
"sidecarFormat",
"1.0"
]
]
}
File renamed without changes.
4 changes: 2 additions & 2 deletions tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ def test_asin(self):

def test_word_wise_glosses(self):
self.check_db(
'LanguageLayer.en.json',
'LanguageLayer_mac.json' if ismacos else 'LanguageLayer.json',
get_ll_path(self.asin, self.book_path),
'glosses',
'SELECT start, difficulty, sense_id FROM glosses '
f'ORDER BY start LIMIT {LIMIT}')

def test_word_wise_metadata(self):
self.check_db(
'LanguageLayer.en.json',
'LanguageLayer_mac.json' if ismacos else 'LanguageLayer.json',
get_ll_path(self.asin, self.book_path),
'metadata',
'SELECT * FROM metadata')
Expand Down

0 comments on commit 9ee874a

Please sign in to comment.