def setUp(self): name = 'Horribly Misspelled Game Title' developer = factories.CompanyFactory() publisher = factories.CompanyFactory() platform = factories.PlatformFactory() genre = factories.GenreFactory() year = 2012 website = 'https://example.com' self.game = factories.GameFactory(name=name) self.game.platforms.set([platform.id]) self.game.genres.set([genre.id]) self.game.website = website self.game.year = year self.game.description = '' self.game.developer = developer self.game.publisher = publisher self.game.save() self.inputs = { 'name': name, 'developer': developer.id, 'publisher': publisher.id, 'platforms': [platform.id], 'genres': [genre.id], 'website': website, 'year': year, 'description': '' }
def setUp(self): self.platform = factories.PlatformFactory() self.genre = factories.GenreFactory() self.developer = factories.CompanyFactory() self.publisher = factories.CompanyFactory() self.existing_game = factories.GameFactory( name="Hyperdimension Neptunia Re;Birth2: Sisters Generation")