瀏覽代碼

changed travis configuration to get py.test to work

pull/147/head
Johannes 8 年之前
父節點
當前提交
4d59b9dc07
共有 2 個文件被更改,包括 7 次插入2 次删除
  1. +6
    -1
      .travis.yml
  2. +1
    -1
      tests/logs/test_log_view.py

+ 6
- 1
.travis.yml 查看文件

@@ -1,8 +1,13 @@
language: python
python:
- "2.7"
before_install:
- pip install pytest pytest-cov

# command to install dependencies
install:
- pip install -r requirements.txt

script: py.test
script:
- py.test

+ 1
- 1
tests/logs/test_log_view.py 查看文件

@@ -6,7 +6,7 @@ from modules.logs import LogView
class TestLogView(unittest.TestCase):

def test_get_all_logfiles(self):
LogView._log_directory = "../../logs"
LogView._log_directory = "./logs"

log_view = LogView()
logfiles = log_view.get_all_logfiles()


Loading…
取消
儲存