1
0
mirror of https://github.com/wallabag/docker synced 2025-12-13 09:46:27 +00:00

added travis testing

travis builds and spins up containers for sqlite, mariadb and postgres
and runs a simple python test script for accessing the wallabag.
This commit is contained in:
Marvin Steadfast
2016-08-29 09:30:59 +02:00
parent 107beb115c
commit 4a81bc45db
6 changed files with 105 additions and 0 deletions

14
tests/test_login.py Normal file
View File

@@ -0,0 +1,14 @@
import requests
URL = 'http://127.0.0.1:80'
def test_login_page():
r = requests.get(URL, allow_redirects=True)
assert r.status_code == 200
assert 'Login' in r.text
assert 'Password' in r.text
assert 'Register' in r.text
assert 'Username' in r.text