MCPcopy Create free account
hub / github.com/0010aor/FlashNotes / test_create_user

Function test_create_user

backend/tests/users/test_services.py:21–27  ·  view source on GitHub ↗
(db: Session)

Source from the content-addressed store, hash-verified

19
20
21def test_create_user(db: Session) -> None:
22 email = random_email()
23 password = random_lower_string()
24 user_in = UserCreate(email=email, password=password)
25 user = create_user(session=db, user_create=user_in)
26 assert user.email == email
27 assert hasattr(user, "hashed_password")
28
29
30def test_check_if_user_is_active(db: Session) -> None:

Callers

nothing calls this directly

Calls 4

random_emailFunction · 0.90
random_lower_stringFunction · 0.90
UserCreateClass · 0.90
create_userFunction · 0.90

Tested by

no test coverage detected