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

Method test_regular_user

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

Source from the content-addressed store, hash-verified

135
136 @pytest.mark.parametrize("email", ["lancelot@camelot.bt", "Lancelot@camelot.bt"])
137 async def test_regular_user(
138 self, email: str, user_manager: UserManagerMock[UserModel]
139 ):
140 user = UserCreate(email=email, password="guinevere")
141 created_user = await user_manager.create(user)
142 assert isinstance(created_user, UserModel)
143
144 assert user_manager.on_after_register.called is True
145
146 @pytest.mark.parametrize("safe,result", [(True, False), (False, True)])
147 async def test_superuser(

Callers

nothing calls this directly

Calls 2

UserCreateClass · 0.90
createMethod · 0.45

Tested by

no test coverage detected