1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed random models_fields.test_uuid.TestQuerying failures.

Random failures depended on a generated UUID.
This commit is contained in:
Mariusz Felisiak
2019-12-27 15:25:50 +01:00
committed by GitHub
parent 62727e65fb
commit 5a68f02498

View File

@@ -87,7 +87,9 @@ class TestQuerying(TestCase):
@classmethod @classmethod
def setUpTestData(cls): def setUpTestData(cls):
cls.objs = [ cls.objs = [
NullableUUIDModel.objects.create(field=uuid.uuid4()), NullableUUIDModel.objects.create(
field=uuid.UUID('25d405be-4895-4d50-9b2e-d6695359ce47'),
),
NullableUUIDModel.objects.create(field='550e8400e29b41d4a716446655440000'), NullableUUIDModel.objects.create(field='550e8400e29b41d4a716446655440000'),
NullableUUIDModel.objects.create(field=None), NullableUUIDModel.objects.create(field=None),
] ]