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

Function test_user

backend/tests/users/conftest.py:12–20  ·  view source on GitHub ↗
(db: Session)

Source from the content-addressed store, hash-verified

10
11@pytest.fixture
12def test_user(db: Session) -> dict[str, Any]:
13 email = random_email()
14 password = random_lower_string()
15 full_name = random_lower_string()
16
17 user_in = UserCreate(email=email, password=password, full_name=full_name)
18 user = create_user(session=db, user_create=user_in)
19
20 return user

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