Fixed #33627 -- Improved nonexistent pk in ModelMultipleChoiceFieldTests.test_model_multiple_choice_field().

This commit is contained in:
SanderBeekhuis 2022-04-13 08:31:23 +02:00 committed by GitHub
parent 856b528801
commit 27d52158b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2098,7 +2098,7 @@ class ModelMultipleChoiceFieldTests(TestCase):
[self.c1, self.c2], [self.c1, self.c2],
) )
with self.assertRaises(ValidationError): with self.assertRaises(ValidationError):
f.clean(["100"]) f.clean(["0"])
with self.assertRaises(ValidationError): with self.assertRaises(ValidationError):
f.clean("hello") f.clean("hello")
with self.assertRaises(ValidationError): with self.assertRaises(ValidationError):