Explorar el Código

changed travis configuration to get py.test to work

pull/147/head
Johannes hace 8 años
padre
commit
4d59b9dc07
Se han modificado 2 ficheros con 7 adiciones y 2 borrados
  1. +6
    -1
      .travis.yml
  2. +1
    -1
      tests/logs/test_log_view.py

+ 6
- 1
.travis.yml Ver fichero

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

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


script: py.test
script:
- py.test

+ 1
- 1
tests/logs/test_log_view.py Ver fichero

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


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


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


Cargando…
Cancelar
Guardar