1
0
mirror of https://github.com/wallabag/docker synced 2025-12-12 17:26:25 +00:00
Files
docker-wallabag/tests/test_login.py
Marvin Steadfast 4a81bc45db 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.
2016-08-29 13:51:14 +02:00

15 lines
277 B
Python

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