MCPcopy Create free account
hub / github.com/fastapi-users/fastapi-users / get_by_email

Method get_by_email

tests/conftest.py:326–338  ·  view source on GitHub ↗
(self, email: str)

Source from the content-addressed store, hash-verified

324 return None
325
326 async def get_by_email(self, email: str) -> UserModel | None:
327 lower_email = email.lower()
328 if lower_email == user.email.lower():
329 return user
330 if lower_email == verified_user.email.lower():
331 return verified_user
332 if lower_email == inactive_user.email.lower():
333 return inactive_user
334 if lower_email == superuser.email.lower():
335 return superuser
336 if lower_email == verified_superuser.email.lower():
337 return verified_superuser
338 return None
339
340 async def create(self, create_dict: dict[str, Any]) -> UserModel:
341 return UserModel(**create_dict)

Callers 3

test_existing_userMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected