diff options
| author | Florian Apolloner <florian@apolloner.eu> | 2013-11-03 14:16:48 +0100 |
|---|---|---|
| committer | Florian Apolloner <florian@apolloner.eu> | 2013-11-03 14:16:48 +0100 |
| commit | 08e2ecee3b542fb4186be8da3b0cc2af628df0a1 (patch) | |
| tree | cb7926dda57b7db78ed43cf1bf241bbd97702994 | |
| parent | f40f90d63b4be295269b5f0de5f919be22daba5c (diff) | |
Fixed some testfailures on jenkins.
Depending on the order of the tests beeing run, 10 can be a valid pk,
0 can never be a valid pk and as such we will get the wanted ValidationError.
| -rw-r--r-- | tests/model_forms/tests.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/model_forms/tests.py b/tests/model_forms/tests.py index 4b6c3b36ad..a71f716264 100644 --- a/tests/model_forms/tests.py +++ b/tests/model_forms/tests.py @@ -1344,11 +1344,11 @@ class OldFormForXTests(TestCase): self.assertIsInstance(f.clean([]), EmptyQuerySet) self.assertIsInstance(f.clean(()), EmptyQuerySet) with self.assertRaises(ValidationError): - f.clean(['10']) + f.clean(['0']) with self.assertRaises(ValidationError): - f.clean([str(c3.id), '10']) + f.clean([str(c3.id), '0']) with self.assertRaises(ValidationError): - f.clean([str(c1.id), '10']) + f.clean([str(c1.id), '0']) # queryset can be changed after the field is created. f.queryset = Category.objects.exclude(name='Fourth') |
