@override_settings(AUTH_USER_MODEL='auth_tests.CustomUserNonListRequiredFields')
    def test_required_fields_is_list(self):
        class CustomUserNonListRequiredFields(AbstractBaseUser):
            username = models.CharField(max_length=30, unique=True)
            date_of_birth = models.DateField()

            USERNAME_FIELD = 'username'
            REQUIRED_FIELDS = 'date_of_birth'

        errors = checks.run_checks(app_configs=self.apps.get_app_configs())
        self.assertEqual(errors, [
            checks.Error(
                "'REQUIRED_FIELDS' must be a list or tuple.",
                obj=CustomUserNonListRequiredFields,
                id='auth.E001',
            ),
        ])
Clear personal information such as statements.
dataset/ETHPy150Open django/django/tests/auth_tests/test_checks.py/UserModelChecksTests.test_required_fields_is_list--crossover with--dataset/ETHPy150Open gratipay/gratipay.com/gratipay/models/participant.py/Participant.clear_personal_information