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

Function test_other_user

backend/tests/flashcards/conftest.py:27–35  ·  view source on GitHub ↗
(db: Session)

Source from the content-addressed store, hash-verified

25
26@pytest.fixture
27def test_other_user(db: Session) -> dict[str, Any]:
28 email = random_email()
29 password = random_lower_string()
30 full_name = random_lower_string()
31
32 user_in = UserCreate(email=email, password=password, full_name=full_name)
33 user = create_user(session=db, user_create=user_in)
34
35 return {"id": user.id, "email": user.email}
36
37
38@pytest.fixture

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