You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
328 B
Python
11 lines
328 B
Python
def test_index_redirect_to_contacts(client):
|
|
response = client.get("/")
|
|
assert response.status_code == 302
|
|
assert response.headers.get("Location") == "/contacts"
|
|
|
|
|
|
def test_get_contacts(client):
|
|
response = client.get("/contacts")
|
|
assert response.status_code == 200
|
|
assert "htmx" in response.text.lower()
|