From 680f2b2256bfd715f6428ebb5b9f71b04380aaa4 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 1 Mar 2016 23:17:13 +0100 Subject: Imports: add ical management --- chimere/tests.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'chimere/tests.py') diff --git a/chimere/tests.py b/chimere/tests.py index ca93546..e192bcc 100644 --- a/chimere/tests.py +++ b/chimere/tests.py @@ -349,6 +349,17 @@ class JsonImporterTest(TestCase, ImporterTest): self.marker_importers = [(importer1, 5), ] +class IcalImporterTest(TestCase, ImporterTest): + def setUp(self): + subcategories = subcategory_setup() + icsfile = File(open(test_dir_path + 'tests/test.ics')) + importer1 = Importer.objects.create( + importer_type='ICAL', + source_file=icsfile,) + importer1.categories.add(subcategories[0]) + self.marker_importers = [(importer1, 1), ] + + class FeedsTest(TestCase): def setUp(self): self.areas = areas_setup() -- cgit v1.2.3