This commit is contained in:
Mateusz Gruszczyński
2026-03-05 15:53:33 +01:00
commit e8f6c4c609
74 changed files with 4482 additions and 0 deletions

11
tests/test_auth.py Normal file
View File

@@ -0,0 +1,11 @@
def test_login_page(client):
r = client.get("/auth/login")
assert r.status_code == 200
def test_register_and_login(client):
# register
r = client.post("/auth/register", data={"email":"u1@example.com","password":"Password123!"}, follow_redirects=True)
assert r.status_code in (200, 302)
# login
r = client.post("/auth/login", data={"email":"u1@example.com","password":"Password123!"}, follow_redirects=False)
assert r.status_code in (302,)