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