mirror of https://github.com/django/django.git
Don't hardcode primary keys in gis tests.
This commit is contained in:
parent
11c7ec7993
commit
01820466ca
|
@ -77,8 +77,8 @@ class GeoRegressionTests(TestCase):
|
||||||
t1 = Truth.objects.create(val=True)
|
t1 = Truth.objects.create(val=True)
|
||||||
t2 = Truth.objects.create(val=False)
|
t2 = Truth.objects.create(val=False)
|
||||||
|
|
||||||
val1 = Truth.objects.get(pk=1).val
|
val1 = Truth.objects.get(pk=t1).val
|
||||||
val2 = Truth.objects.get(pk=2).val
|
val2 = Truth.objects.get(pk=t2).val
|
||||||
# verify types -- should't be 0/1
|
# verify types -- should't be 0/1
|
||||||
self.assertIsInstance(val1, bool)
|
self.assertIsInstance(val1, bool)
|
||||||
self.assertIsInstance(val2, bool)
|
self.assertIsInstance(val2, bool)
|
||||||
|
|
Loading…
Reference in New Issue