소스 검색

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()


불러오는 중...
취소
저장