MCPcopy Index your code
hub / github.com/fastapi-users/fastapi-users / test_existing_user

Method test_existing_user

tests/test_manager.py:128–134  ·  view source on GitHub ↗
(
        self, email: str, user_manager: UserManagerMock[UserModel]
    )

Source from the content-addressed store, hash-verified

126 "email", ["king.arthur@camelot.bt", "King.Arthur@camelot.bt"]
127 )
128 async def test_existing_user(
129 self, email: str, user_manager: UserManagerMock[UserModel]
130 ):
131 user = UserCreate(email=email, password="guinevere")
132 with pytest.raises(UserAlreadyExists):
133 await user_manager.create(user)
134 assert user_manager.on_after_register.called is False
135
136 @pytest.mark.parametrize("email", ["lancelot@camelot.bt", "Lancelot@camelot.bt"])
137 async def test_regular_user(

Callers

nothing calls this directly

Calls 2

UserCreateClass · 0.90
createMethod · 0.45

Tested by

no test coverage detected