def setUp(self): contact = Contact() contact.first_name = "Jeffery" contact.last_name = "Smith" contact.email = "*****@*****.**" contact.save() category = Category(name='Device') category.save() for category in self.categories: Category(name=category).save()
def setUp(self): for category in self.categories: record = Category(name=category) record.save() for metatag in self.metatags: record = Metadata(name=metatag) record.save()
def setUp(self): self.user.email = lambda: None setattr(self.user, 'email', '*****@*****.**') contact = Contact(email='*****@*****.**') contact.save() category = Category(name='Devices') category.save() for key in self.form_values.keys(): category = Category(name=key) category.save()
def setUp(self): for category in self.categories: record = Category(name=category) record.save() for metatag in self.metatags: record = Metadata(name=metatag) record.save() category = Category.objects.all() metadata = Metadata.objects.all() for i in range(0, 3): for meta in metadata: tag = Tag(category=category[i], metadata=meta ) tag.save()
def setUp(self): category = Category(name='Device') category.save() for category in self.categories: Category(name=category).save()