From ca18c3440082464d45ce92cb4ccef55454918391 Mon Sep 17 00:00:00 2001 From: jphanna Date: Tue, 16 Apr 2024 01:52:05 -0400 Subject: [PATCH] DQB-28 Delete broken factory Maybe clause in factory was not working. will come back to this --- src/helpers/factories/quest_factories.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/helpers/factories/quest_factories.py b/src/helpers/factories/quest_factories.py index c79bf2c..416e5eb 100644 --- a/src/helpers/factories/quest_factories.py +++ b/src/helpers/factories/quest_factories.py @@ -45,14 +45,3 @@ class Meta: quest = factory.SubFactory(QuestFactory) experience = factory.SelfAttribute("quest.experience") user = factory.SubFactory(UserFactory) - - -@register -class UserWithQuestFactory(UserFactory): - quest = factory.RelatedFactory(UserQuestFactory, factory_related_name="user") - experience = factory.Maybe( - "quest__is_completed", - yes_declaration=factory.RelatedFactory( - ExperienceTransactionFactory, factory_related_name="user", quest=factory.SelfAttribute("quest") - ), - )