Skip to content

Commit 5b13966

Browse files
authored
Use proper is_active field
1 parent ba1706b commit 5b13966

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/app/tests/crud/test_user.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ def test_check_if_user_is_active(db: Session) -> None:
4444
def test_check_if_user_is_active_inactive(db: Session) -> None:
4545
email = random_email()
4646
password = random_lower_string()
47-
user_in = UserCreate(email=email, password=password, disabled=True)
47+
user_in = UserCreate(email=email, password=password, is_active=False)
4848
user = crud.create_user(session=db, user_create=user_in)
49-
assert user.is_active
49+
assert user.is_active is False
5050

5151

5252
def test_check_if_user_is_superuser(db: Session) -> None:

0 commit comments

Comments
 (0)