コード例 #1
0
 def get_good_data(self):
     return {
         'structure': Structure.objects.first().pk,
         'name_fr': 'test',
         'category': TouristicContentCategoryFactory.create().pk,
         'geom': '{"type": "Point", "coordinates":[0, 0]}',
     }
コード例 #2
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]}',
     }
コード例 #3
0
ファイル: test_functional.py プロジェクト: Pitchs/Geotrek
 def get_good_data(self):
     return {
         'name_fr': u'test',
         'category': TouristicContentCategoryFactory.create().pk,
         'structure': default_structure().pk,
         'geom': '{"type": "Point", "coordinates":[0, 0]}',
     }
コード例 #4
0
ファイル: test_views.py プロジェクト: Pitchs/Geotrek
 def setUp(self):
     self.category = TouristicContentCategoryFactory.create()
     TouristicContentCategoryFactory.create()
     self.login()