From 5a68f024987e6d16c2626a31bf653a2edddea579 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Fri, 27 Dec 2019 15:25:50 +0100 Subject: [PATCH] Fixed random models_fields.test_uuid.TestQuerying failures. Random failures depended on a generated UUID. --- tests/model_fields/test_uuid.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/model_fields/test_uuid.py b/tests/model_fields/test_uuid.py index 116e40065c..c53df2c7af 100644 --- a/tests/model_fields/test_uuid.py +++ b/tests/model_fields/test_uuid.py @@ -87,7 +87,9 @@ class TestQuerying(TestCase): @classmethod def setUpTestData(cls): 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=None), ]