Release Vulpes OS 2.7-preview.22
This commit is contained in:
parent
200d1fb235
commit
a138f97877
294 changed files with 515786 additions and 187 deletions
26
tundra/tests/test_beatles_t9.py
Normal file
26
tundra/tests/test_beatles_t9.py
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
import importlib.util
|
||||
from pathlib import Path
|
||||
import unittest
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[2]
|
||||
spec = importlib.util.spec_from_file_location(
|
||||
'package_beatles', ROOT / 'tundra/tools/package-beatles-build.py')
|
||||
package = importlib.util.module_from_spec(spec)
|
||||
spec.loader.exec_module(package)
|
||||
|
||||
|
||||
class BeatlesT9Package(unittest.TestCase):
|
||||
def test_all_offline_lexicons_are_included_at_runtime_path(self):
|
||||
files = {}
|
||||
package.add_beatles_t9(files)
|
||||
self.assertEqual(len(files), 42)
|
||||
self.assertEqual(
|
||||
set(files),
|
||||
{f'opt/vulpes/tundra/devices/beatles/t9/{locale}.tsv'
|
||||
for locale in (path.stem for path in
|
||||
(ROOT / 'tundra/devices/beatles/t9').glob('*.tsv'))})
|
||||
self.assertTrue(all(path.is_file() for path in files.values()))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
Loading…
Reference in a new issue