示例#1
0
 def create_factories(self):
     # We want a user who lives somewhere with a membership!
     super().create_factories()
     self.processor = UserFactory.create()
     self.user = UserWithHostFactory.create()
     self.membership = MembershipFactory.create(user=self.user,
                                                group=self.config.member_group)
     self.other_room = RoomFactory.create()
示例#2
0
 def create_factories(self):
     # We want a user who lives somewhere with a membership!
     super().create_factories()
     self.user = UserWithHostFactory.create(
         with_membership=True,
         membership__group=self.config.member_group,
     )
     self.old_room = self.user.room
     self.new_room: Room = RoomFactory.create()
示例#3
0
 def create_factories(self):
     super().create_factories()
     self.room = RoomFactory.create()