Просмотр исходного кода

changed travis configuration to get py.test to work

pull/147/head
Johannes 8 лет назад
Родитель
Сommit
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()


Загрузка…
Отмена
Сохранить