File size: 283 Bytes
89419ea
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
from fastapi.testclient import TestClient

from src.web.app import create_app


def test_login_page_renders_successfully():
    client = TestClient(create_app())

    response = client.get("/login")

    assert response.status_code == 200
    assert "login" in response.text.lower()