def METHOD_NAME(
    settings: SettingsWrapper, rf: RequestFactory, mocker: MockerFixture, db: None
):
    # Given
    settings.ALLOW_REGISTRATION_WITHOUT_INVITE = False
    request = rf.post("/api/v1/auth/users/")
    user_email = "test_user@test.com"
    serializer = OAuthLoginSerializer(
        data={
            "access_token": "some_token",
            "sign_up_type": SignUpType.INVITE_LINK.value,
        },
        context={"request": request},
    )
    # monkey patch the get_user_info method to return the mock user data
    serializer.get_user_info = lambda: {"email": user_email}
    serializer.is_valid(raise_exception=True)
    # When
    user = serializer.save()
    # Then
    assert user