2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2025-01-24 07:38:33 +00:00
frappe_docker/test.py
vishalseshagiri fbf13bbc2e Added bench init , start and python tests to curl the site
Former-commit-id: 3f148638fb596fc922bd24e045eb1a568443ffaf
2017-10-02 09:48:47 +05:30

11 lines
238 B
Python

import subprocess,requests,time
time.wait(45)
try:
r = requests.get("site1.local:8000")
assert '<title> Login </title>' in r.content, "Login page failed to load"
except Exception as e:
traceback.print_exc(e)
sys.exit(3)