from uuid import uuid4

from sqlalchemy.orm.session import Session

from app.models.user import User


def test_user_model(db: Session):
    user = User(id=uuid4(), email="<EMAIL>", hashed_password="<PASSWORD>")
    db.add(user)
    db.commit()
    assert user.id

from uuid import uuid4

from sqlalchemy.orm.session import Session

from app.models.user import User


def test_user_model(db: Session):
    user = User(id=uuid4(), email="<EMAIL>", hashed_password="<PASSWORD>")
    db.add(user)
    db.commit()
    assert user.id
