tests: add proper fix for test of validation error message (#25403)
This commit is contained in:
parent
9705aef9a6
commit
8754e9b2b0
|
@ -206,7 +206,7 @@ class ValidatorsTest(TestCase):
|
|||
from authentic2.validators import validate_password
|
||||
from django.core.exceptions import ValidationError
|
||||
|
||||
with self.assertRaisesRegexp(ValidationError):
|
||||
with pytest.raises(ValidationError):
|
||||
validate_password('aaa')
|
||||
validate_password('12345678')
|
||||
|
||||
|
|
Loading…
Reference in New Issue