mirror of
https://github.com/wallabag/docker
synced 2025-12-12 17:26:25 +00:00
travis builds and spins up containers for sqlite, mariadb and postgres and runs a simple python test script for accessing the wallabag.
15 lines
277 B
Python
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
|