Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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.
  • Loading branch information...
commit 08e2ecee3b542fb4186be8da3b0cc2af628df0a1 1 parent f40f90d
@apollo13 apollo13 authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 tests/model_forms/tests.py
View
6 tests/model_forms/tests.py
@@ -1344,11 +1344,11 @@ def test_with_data(self):
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')
Please sign in to comment.
Something went wrong with that request. Please try again.