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.

15 lines
469 B
Python

1 year ago
def test_index_redirect_to_contacts(client):
response = client.get("/")
assert response.status_code == 302
assert response.headers.get("Location") == "/contacts"
def test_login_get_contacts(anynomous_client):
response = anynomous_client.get("/contacts", follow_redirects=False)
assert response.status_code == 302
1 year ago
def test_get_contacts(client):
response = client.get("/contacts", follow_redirects=True)
1 year ago
assert response.status_code == 200