Exemple #1
0
    def test_check_i001(self):
        """How is a missing admin interface handled?"""

        # remove the settings, that are set in admin.py
        del settings.MINIUSER_ADMIN_LIST_DISPLAY
        del settings.MINIUSER_ADMIN_SHOW_SEARCHBOX

        errors = check_correct_values(None)
        # print(settings.MINIUSER_ADMIN_LIST_DISPLAY)
        self.assertEqual(errors, [I001])
Exemple #2
0
 def test_check_e003(self):
     """MINIUSER_REQUIRE_VALID_EMAIL must be a boolean value"""
     errors = check_correct_values(None)
     self.assertEqual(errors, [E003])
Exemple #3
0
 def test_check_e002(self):
     """MINIUSER_LOGIN_NAME must be 'username', 'email' or 'both'"""
     errors = check_correct_values(None)
     self.assertEqual(errors, [E002])
Exemple #4
0
 def test_check_e001(self):
     """MINIUSER_DEFAULT_ACTIVE must be a boolean value"""
     errors = check_correct_values(None)
     self.assertEqual(errors, [E001])
Exemple #5
0
 def test_check_e011(self):
     errors = check_correct_values(None)
     self.assertEqual(errors, [E011])
Exemple #6
0
 def test_check_e008(self):
     """MINIUSER_ADMIN_STATUS_CHAR_STAFF must be one single char"""
     errors = check_correct_values(None)
     self.assertEqual(errors, [E008])
Exemple #7
0
 def test_check_e006(self):
     """MINIUSER_ADMIN_STATUS_COLOR_STAFF must be a hexadecimal color code"""
     errors = check_correct_values(None)
     self.assertEqual(errors, [E006])