|
| 1 | +def test_zf_app_home(client_new): |
| 2 | + """ |
| 3 | + GIVEN a web client for a newly initialized server |
| 4 | + WHEN the home page is requested |
| 5 | + THEN returns an HTML page with 200 |
| 6 | + """ |
| 7 | + res = client_new.get("/") |
| 8 | + assert res.status_code == 200 |
| 9 | + assert "text/html" in res.headers.get("Content-Type") |
| 10 | + assert "html" in res.text |
| 11 | + |
| 12 | + |
| 13 | +def test_zf_app_zone(client_single_zone): |
| 14 | + """ |
| 15 | + GIVEN a web client for a newly initialized server |
| 16 | + WHEN a zome's page is requested |
| 17 | + THEN returns an HTML page with 200 |
| 18 | + """ |
| 19 | + res = client_single_zone.get("/zone/example.com.") |
| 20 | + assert res.status_code == 200 |
| 21 | + assert "text/html" in res.headers.get("Content-Type") |
| 22 | + assert "html" in res.text |
| 23 | + |
| 24 | + |
| 25 | +def test_zf_app_login(client_new): |
| 26 | + """ |
| 27 | + GIVEN a web client for a newly initialized server |
| 28 | + WHEN the login page is requested |
| 29 | + THEN returns an HTML page with 200 |
| 30 | + """ |
| 31 | + res = client_new.get("/login") |
| 32 | + assert res.status_code == 200 |
| 33 | + assert "text/html" in res.headers.get("Content-Type") |
| 34 | + assert "html" in res.text |
| 35 | + |
| 36 | + |
| 37 | +def test_zf_app_signup(client_new): |
| 38 | + """ |
| 39 | + GIVEN a web client for a newly initialized server |
| 40 | + WHEN the signup page is requested |
| 41 | + THEN returns an HTML page with 200 |
| 42 | + """ |
| 43 | + res = client_new.get("/signup") |
| 44 | + assert res.status_code == 200 |
| 45 | + assert "text/html" in res.headers.get("Content-Type") |
| 46 | + assert "html" in res.text |
0 commit comments