Skip to content

Commit

Permalink
DQB-28 Delete broken factory
Browse files Browse the repository at this point in the history
Maybe clause in factory was not working. will come back to this
  • Loading branch information
jplhanna committed Apr 16, 2024
1 parent af4c62e commit ca18c34
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/helpers/factories/quest_factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
),
)

0 comments on commit ca18c34

Please sign in to comment.