travis-ci
12911 of 13174 relevant lines covered (98.0%)
1.47 hits per line
1 |
# -*- coding: utf-8 -*-
|
|
2 |
import os |
1 only TOX_ENV=單元試驗 ✔ |
3 |
from unittest.case import TestCase |
1 only TOX_ENV=單元試驗 ✔ |
4 |
from 臺灣言語工具.系統整合.外部程式 import 外部程式 |
1 only TOX_ENV=單元試驗 ✔ |
5 |
|
|
6 |
|
|
7 |
class 外部程式單元試驗(TestCase): |
1 only TOX_ENV=單元試驗 ✔ |
8 |
def setUp(self): |
1 only TOX_ENV=單元試驗 ✔ |
9 |
self.這馬目錄 = os.path.dirname(os.path.abspath(__file__))
|
1 only TOX_ENV=單元試驗 ✔ |
10 |
|
|
11 |
def test_空執行檔路徑加尾(self): |
1 only TOX_ENV=單元試驗 ✔ |
12 |
路徑 = os.path.abspath(os.path.join(self.這馬目錄, '..', '..', '外部程式')) |
1 only TOX_ENV=單元試驗 ✔ |
13 |
self.assertEqual(外部程式.目錄(), 路徑)
|
1 only TOX_ENV=單元試驗 ✔ |