backend/pitch_deck_generator/users/tests/test_models.py

8 lines
181 B
Python
Raw Normal View History

2023-08-26 17:16:07 +03:00
from pitch_deck_generator.users.models import User
def test_user_create(user: User):
password = "123"
user.set_password(password)
assert user.check_password(password)