From e3ead78f84db2ea1bf13b44cf870636fc7fae065 Mon Sep 17 00:00:00 2001 From: Nauanbek <65670303+nauanbek@users.noreply.github.com> Date: Thu, 22 Jan 2026 19:43:30 +0700 Subject: [PATCH] Use proper is_active field (#1479) Co-authored-by: Yurii Motov --- backend/tests/crud/test_user.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/tests/crud/test_user.py b/backend/tests/crud/test_user.py index 10bda25..1081a5a 100644 --- a/backend/tests/crud/test_user.py +++ b/backend/tests/crud/test_user.py @@ -44,9 +44,9 @@ def test_check_if_user_is_active(db: Session) -> None: def test_check_if_user_is_active_inactive(db: Session) -> None: email = random_email() password = random_lower_string() - user_in = UserCreate(email=email, password=password, disabled=True) + user_in = UserCreate(email=email, password=password, is_active=False) user = crud.create_user(session=db, user_create=user_in) - assert user.is_active + assert user.is_active is False def test_check_if_user_is_superuser(db: Session) -> None: