diff options
| author | Bruno Alla <bruno.alla@founders4schools.org.uk> | 2017-03-07 21:00:43 +0000 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-05-24 08:36:34 -0400 |
| commit | 6092ea8fa62191bf9ed8ebaae3125dcde9c4bbec (patch) | |
| tree | 4da8346887b1c33e3b0a993eaf780687cdb239b0 /tests/auth_tests/test_models.py | |
| parent | 91b2bc3e70be2632baad86488fb03cf02848b5b6 (diff) | |
Refs #27804 -- Used subTest() in several tests.
Diffstat (limited to 'tests/auth_tests/test_models.py')
| -rw-r--r-- | tests/auth_tests/test_models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auth_tests/test_models.py b/tests/auth_tests/test_models.py index 142fbcc39c..e546d61c64 100644 --- a/tests/auth_tests/test_models.py +++ b/tests/auth_tests/test_models.py @@ -161,7 +161,7 @@ class AbstractBaseUserTests(TestCase): # The normalization happens in AbstractBaseUser.clean() ohm_username = 'iamtheā¦' # U+2126 OHM SIGN for model in ('auth.User', 'auth_tests.CustomUser'): - with self.settings(AUTH_USER_MODEL=model): + with self.subTest(model=model), self.settings(AUTH_USER_MODEL=model): User = get_user_model() user = User(**{User.USERNAME_FIELD: ohm_username, 'password': 'foo'}) user.clean() |
