src/cm/converters/tests/test_convert.py
author Simon Descarpentries <sid@sopinspace.com>
Wed, 09 May 2012 17:13:33 +0200
changeset 417 c5e91f204371
parent 0 40c8f766c9b8
permissions -rw-r--r--
After investigations, commit the proposed patch by kklimonda presented with the following introduction : cm/templates/site/login_form.html template uses a relative url for the form action, which seems to break deployment in the subfolder when trailing slash is missing (the form redirects to the upper folder breaking login). Using {% url login %} (as in the attached patch) instead would fix the issue.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     1
import random
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     2
import unittest
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     3
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     4
from cm.converters import convert_from_mimetype
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     5
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     6
class TestConvert(unittest.TestCase):
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     7
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     8
    def test_oo_convert(self):
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     9
        res, attachs = convert_from_mimetype('cm/converters/tests/data/ooserver_can_convert_me01.doc', 'application/vnd.oasis.opendocument.text', 'markdown')
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    10
        print res
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    11
        
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    12
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    13
if __name__ == '__main__':
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    14
    unittest.main()