diff --git a/CHANGELOG b/CHANGELOG index 770c39e8a..0f3e59dc0 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -27,6 +27,7 @@ Other: - Fixed http status code when requesting a non-existing static page using Tornado web server. - Fixed error in main script when using other database engine. +- Fixed error on motion PDF with nested lists Version 1.5 (2013-11-25) diff --git a/tests/motion/test_pdf.py b/tests/motion/test_pdf.py new file mode 100644 index 000000000..7becbd12c --- /dev/null +++ b/tests/motion/test_pdf.py @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- +from django.test.client import Client +from openslides.motion.models import Motion +from openslides.participant.models import User +from openslides.utils.test import TestCase + + +class MotionPDFTest(TestCase): + """ + Tests for motion PDF. + """ + def setUp(self): + # Admin + self.admin = User.objects.get(pk=1) + self.admin_client = Client() + self.admin_client.login(username='admin', password='admin') + + def test_render_nested_list(self): + Motion.objects.create( + title='Test Title chieM6Aing8Eegh9ePhu', + text='