diff options
Diffstat (limited to 'chimere/tests.py')
-rw-r--r-- | chimere/tests.py | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/chimere/tests.py b/chimere/tests.py index c5d54c0..bc5c8f3 100644 --- a/chimere/tests.py +++ b/chimere/tests.py @@ -364,7 +364,23 @@ class JsonImporterTest(TestCase, ImporterTest): '"date_end_evt":"end_date"}', default_localisation='SRID=4326;POINT(-4.5 48.4)',) importer1.categories.add(subcategories[0]) - self.marker_importers = [(importer1, 5), ] + + jsonfile = File(open(test_dir_path + 'tests/events.json')) + importer2 = Importer.objects.create( + importer_type='JSON', + source_file=jsonfile, + filtr='events{"title":{"fr":"name"}, "uid":"id", ' + '"image":"external_image",' + '"html":{"fr":"description"},' + '"timings":{"start":"start_date"}, ' + '"timings":{"end":"end_date"}, ' + '"latitude":"lat", ' + '"longitude":"lon"' + '}', + default_localisation='SRID=4326;POINT(-4.5 48.4)',) + importer2.categories.add(subcategories[0]) + + self.marker_importers = [(importer1, 5), (importer2, 20)] class IcalImporterTest(TestCase, ImporterTest): |