def get_good_data(self): return { 'structure': Structure.objects.first().pk, 'name_fr': 'test', 'category': TouristicContentCategoryFactory.create().pk, 'geom': '{"type": "Point", "coordinates":[0, 0]}', }
def get_good_data(self): return { 'name_fr': u'test', 'category': TouristicContentCategoryFactory.create().pk, 'structure': default_structure().pk, 'geom': '{"type": "Point", "coordinates":[0, 0]}', }
def get_good_data(self): return { 'name_fr': u'test', 'category': TouristicContentCategoryFactory.create().pk, 'structure': default_structure().pk, 'geom': '{"type": "Point", "coordinates":[0, 0]}', }
def setUp(self): self.category = TouristicContentCategoryFactory.create() TouristicContentCategoryFactory.create() self.login()