Start the test suite

This commit is contained in:
Thomas Sileo 2018-05-20 22:34:56 +02:00
parent 1c1816e102
commit a138bc0c48
2 changed files with 10 additions and 3 deletions

View file

@ -8,11 +8,11 @@ install:
- sudo curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
- sudo chmod +x /usr/local/bin/docker-compose
- docker-compose --version
- pip install pytest mypy flake8
- pip install -r dev-requirements.txt
script:
- mypy --ignore-missing-imports .
# - flake8
- cp -r tests/me.yml config/me.yml
- docker-compose up -d
- docker-compose ps
# - flake8
# - pytest -v
- pytest -v --ignore data

View file

@ -0,0 +1,7 @@
import requests
def test_ping_homepage():
"""Ensure the homepage is accessible."""
resp = requests.get('http://localhost:5005')
resp.raise_for_status()
assert 'ci@localhost' in resp.text